Class 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 Detail

      • CFTreeBuilder

        public CFTreeBuilder​(javax.annotation.processing.ProcessingEnvironment env)
        Creates a CFTreeBuilder.
        Parameters:
        env - environment
    • Method Detail

      • buildAnnotatedType

        public com.sun.source.tree.Tree buildAnnotatedType​(javax.lang.model.type.TypeMirror type)
        Builds an AST Tree representing a type, including AnnotationTrees for its annotations.
        Parameters:
        type - the type
        Returns:
        a Tree representing the type