protected static class CFCFGBuilder.CFCFGTranslationPhaseOne extends CFGTranslationPhaseOne
| Modifier and Type | Field and Description |
|---|---|
protected BaseTypeChecker |
checker
The associated checker.
|
protected AnnotatedTypeFactory |
factory
Type factory to provide types used during CFG building.
|
annotationProvider, arithmeticExceptionType, arrayIndexOutOfBoundsExceptionType, assertionErrorType, assumeAssertionsDisabled, assumeAssertionsEnabled, classCastExceptionType, classCircularityErrorType, classFormatErrorType, ea, elements, env, iterableType, negativeArraySizeExceptionType, newArrayExceptionTypes, noClassDefFoundErrorType, nullPointerExceptionType, outOfMemoryErrorType, stringType, throwableType, treeBuilder, trees, types, uid, uncheckedExceptionTypes| Constructor and Description |
|---|
CFCFGTranslationPhaseOne(CFTreeBuilder builder,
BaseTypeChecker checker,
AnnotatedTypeFactory factory,
boolean assumeAssertionsEnabled,
boolean assumeAssertionsDisabled,
ProcessingEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
assumeAssertionsEnabledFor(AssertTree tree)
Should assertions be assumed to be executed for a given
AssertTree? False by default. |
protected VariableTree |
createEnhancedForLoopArrayVariable(ExpressionTree expression,
VariableElement variableElement) |
protected VariableTree |
createEnhancedForLoopIteratorVariable(MethodInvocationTree iteratorCall,
VariableElement variableElement) |
void |
handleArtificialTree(Tree tree)
Perform any actions required when CFG translation creates a new Tree that is not part of the
original AST.
|
addLabelForNextNode, addToConvertedLookupMap, addToConvertedLookupMap, addToLookupMap, assignConvert, binaryNumericPromotion, binaryPromotedType, box, commonConvert, conditionalExprPromotion, conversionRequiresNarrowing, convertCallArguments, extendWithClassNameNode, extendWithExtendedNode, extendWithNode, extendWithNodeWithException, extendWithNodeWithExceptions, getAssertionsEnabledVariable, getCurrentPath, getLabel, getTypeMirror, insertExtendedNodeAfter, insertNodeAfter, insertNodeWithExceptionsAfter, isNumericOrBoxed, maybeGetTypeMirror, methodInvocationConvert, narrow, narrowAndBox, process, process, scan, stringConversion, translateAssertWithAssertionsEnabled, translateAssignment, translateAssignment, unaryNumericPromotion, unbox, uniqueName, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern17, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSwitchExpression17, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitVariable, visitWhileLoop, visitWildcard, visitYield17, widen, withoutAssignmentreduce, scan, visitExports, visitIntersectionType, visitModule, visitOpens, visitPackage, visitProvides, visitRequires, visitUsesprotected final BaseTypeChecker checker
protected final AnnotatedTypeFactory factory
public CFCFGTranslationPhaseOne(CFTreeBuilder builder, BaseTypeChecker checker, AnnotatedTypeFactory factory, boolean assumeAssertionsEnabled, boolean assumeAssertionsDisabled, ProcessingEnvironment env)
protected boolean assumeAssertionsEnabledFor(AssertTree tree)
CFGTranslationPhaseOneAssertTree? False by default.assumeAssertionsEnabledFor in class CFGTranslationPhaseOnepublic void handleArtificialTree(Tree tree)
Assigns a path to the artificial tree.
handleArtificialTree in class CFGTranslationPhaseOnetree - the newly created Treeprotected VariableTree createEnhancedForLoopIteratorVariable(MethodInvocationTree iteratorCall, VariableElement variableElement)
createEnhancedForLoopIteratorVariable in class CFGTranslationPhaseOneprotected VariableTree createEnhancedForLoopArrayVariable(ExpressionTree expression, VariableElement variableElement)
createEnhancedForLoopArrayVariable in class CFGTranslationPhaseOne