Class CFTreeBuilder
java.lang.Object
org.checkerframework.javacutil.trees.TreeBuilder
org.checkerframework.framework.flow.CFTreeBuilder
The TreeBuilder permits the creation of new AST Trees using the non-public Java compiler API
TreeMaker. Initially, it will support construction of desugared Trees required by the CFGBuilder,
e.g. the pieces of a desugared enhanced for loop.
-
Field Summary
Fields inherited from class org.checkerframework.javacutil.trees.TreeBuilder
elements, env, javacTypes, maker, modelTypes, names, symtab
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildAnnotatedType
(TypeMirror type) Builds an AST Tree representing a type, including AnnotationTrees for its annotations.Methods inherited from class org.checkerframework.javacutil.trees.TreeBuilder
buildArrayAccess, buildArrayLengthAccess, buildAssignment, buildAssignment, buildBinary, buildClassUse, buildCloseMethodAccess, buildHasNextMethodAccess, buildIteratorMethodAccess, buildLessThan, buildLiteral, buildMethodInvocation, buildMethodInvocation, buildNewArray, buildNextMethodAccess, buildPrimValueMethodAccess, buildTypeCast, buildValueOfMethodAccess, buildVariableDecl, buildVariableDecl, buildVariableUse, getValueOfMethod, kindToTag
-
Constructor Details
-
CFTreeBuilder
Creates aCFTreeBuilder
.- Parameters:
env
- environment
-
-
Method Details
-
buildAnnotatedType
Builds an AST Tree representing a type, including AnnotationTrees for its annotations.- Parameters:
type
- the type- Returns:
- a Tree representing the type
-