Class CFGProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

    @SupportedAnnotationTypes("*")
    public class CFGProcessor
    extends BasicTypeProcessor
    Generate the control flow graph of a given method in a given class. See CFGVisualizeLauncher for example usage.
    • Constructor Detail

      • CFGProcessor

        public CFGProcessor​(java.lang.String className,
                            java.lang.String methodName)
        Create a CFG processor.
        Parameters:
        className - the qualified name of class which includes the specified method to generate the CFG for
        methodName - the name of the method to generate the CFG for
    • Method Detail

      • createTreePathScanner

        protected com.sun.source.util.TreePathScanner<?,​?> createTreePathScanner​(com.sun.source.tree.CompilationUnitTree root)
        Description copied from class: BasicTypeProcessor
        Create a TreePathScanner at the given root.
        Specified by:
        createTreePathScanner in class BasicTypeProcessor
        Parameters:
        root - where to start the tree traversal
        Returns:
        a TreePathScanner at the given root
      • getSupportedSourceVersion

        public javax.lang.model.SourceVersion getSupportedSourceVersion()
        Specified by:
        getSupportedSourceVersion in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor