Class CFCFGBuilder
- java.lang.Object
-
- org.checkerframework.dataflow.cfg.builder.CFGBuilder
-
- org.checkerframework.framework.flow.CFCFGBuilder
-
public class CFCFGBuilder extends CFGBuilder
A control-flow graph builder (seeCFGBuilder
) that knows about the Checker Framework annotations and their representation asAnnotatedTypeMirror
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CFCFGBuilder.CFCFGTranslationPhaseOne
A specialized phase-one CFG builder, with a few modifications that make use of the type factory.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFCFGBuilder()
This class should never be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
assumeAssertionsActivatedForAssertTree(BaseTypeChecker checker, com.sun.source.tree.AssertTree tree)
Given a SourceChecker and an AssertTree, returns whether the AssertTree uses an @AssumeAssertion string that is relevant to the SourceChecker.static ControlFlowGraph
build(com.sun.source.tree.CompilationUnitTree root, UnderlyingAST underlyingAST, BaseTypeChecker checker, AnnotatedTypeFactory atypeFactory, javax.annotation.processing.ProcessingEnvironment env)
Build the control flow graph of some code.-
Methods inherited from class org.checkerframework.dataflow.cfg.builder.CFGBuilder
build, build, build, build, extendedNodeCollectionToStringDebug, printBlocks
-
-
-
-
Method Detail
-
build
public static ControlFlowGraph build(com.sun.source.tree.CompilationUnitTree root, UnderlyingAST underlyingAST, BaseTypeChecker checker, AnnotatedTypeFactory atypeFactory, javax.annotation.processing.ProcessingEnvironment env)
Build the control flow graph of some code.
-
assumeAssertionsActivatedForAssertTree
public static boolean assumeAssertionsActivatedForAssertTree(BaseTypeChecker checker, com.sun.source.tree.AssertTree tree)
Given a SourceChecker and an AssertTree, returns whether the AssertTree uses an @AssumeAssertion string that is relevant to the SourceChecker.- Parameters:
checker
- the checkertree
- an assert tree- Returns:
- true if the assert tree contains an @AssumeAssertion(checker) message string for any subchecker of the given checker's ultimate parent checker
-
-