Class InitializationFieldAccessTreeAnnotator
java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Void,AnnotatedTypeMirror>
org.checkerframework.framework.type.treeannotator.TreeAnnotator
org.checkerframework.checker.initialization.InitializationFieldAccessTreeAnnotator
- All Implemented Interfaces:
TreeVisitor<Void,
AnnotatedTypeMirror>
Part of the freedom-before-commitment type system.
This annotator should be added to GenericAnnotatedTypeFactory.createTreeAnnotator()
for
the target checker. It ensures that the fields of an uninitialized receiver have the top type in
the parent checker's hierarchy.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
The value of the assumeInitialized option.Fields inherited from class org.checkerframework.framework.type.treeannotator.TreeAnnotator
atypeFactory
Fields inherited from class com.sun.source.util.SimpleTreeVisitor
DEFAULT_VALUE
-
Constructor Summary
ConstructorDescriptionInitializationFieldAccessTreeAnnotator
(GenericAnnotatedTypeFactory<?, ?, ?, ?> atypeFactory) Creates a new CommitmentFieldAccessTreeAnnotator. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.checkerframework.framework.type.treeannotator.TreeAnnotator
log, visitBinary, visitMethod
Methods inherited from class com.sun.source.util.SimpleTreeVisitor
defaultAction, visit, visit, visitAnnotatedType, visitAnnotation, visitAnyPattern, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitConstantCaseLabel, visitContinue, visitDeconstructionPattern, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPatternCaseLabel, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitStringTemplate, visitSwitch, visitSwitchExpression, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield
-
Field Details
-
assumeInitialized
protected final boolean assumeInitializedThe value of the assumeInitialized option.
-
-
Constructor Details
-
InitializationFieldAccessTreeAnnotator
Creates a new CommitmentFieldAccessTreeAnnotator.- Parameters:
atypeFactory
- the type factory belonging to the init checker's parent
-
-
Method Details
-
visitIdentifier
- Specified by:
visitIdentifier
in interfaceTreeVisitor<Void,
AnnotatedTypeMirror> - Overrides:
visitIdentifier
in classSimpleTreeVisitor<Void,
AnnotatedTypeMirror>
-
visitMemberSelect
- Specified by:
visitMemberSelect
in interfaceTreeVisitor<Void,
AnnotatedTypeMirror> - Overrides:
visitMemberSelect
in classSimpleTreeVisitor<Void,
AnnotatedTypeMirror>
-