Class CFTreeBuilder

java.lang.Object
org.checkerframework.javacutil.trees.TreeBuilder
org.checkerframework.framework.flow.CFTreeBuilder

public class CFTreeBuilder extends TreeBuilder
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.
  • Constructor Details

    • CFTreeBuilder

      public CFTreeBuilder(ProcessingEnvironment env)
      Creates a CFTreeBuilder.
      Parameters:
      env - environment
  • Method Details

    • buildAnnotatedType

      public Tree buildAnnotatedType(TypeMirror type)
      Builds an AST Tree representing a type, including AnnotationTrees for its annotations.
      Parameters:
      type - the type
      Returns:
      a Tree representing the type