public class CFCFGBuilder extends CFGBuilder
CFGBuilder
) that knows about the Checker Framework
annotations and their representation as AnnotatedTypeMirror
s.Modifier and Type | Class and Description |
---|---|
class |
CFCFGBuilder.CFCFGTranslationPhaseOne |
CFGBuilder.CFGTranslationPhaseOne, CFGBuilder.CFGTranslationPhaseThree, CFGBuilder.CFGTranslationPhaseTwo, CFGBuilder.ConditionalJump, CFGBuilder.ExtendedNode, CFGBuilder.Label, CFGBuilder.NodeHolder, CFGBuilder.NodeWithExceptionsHolder, CFGBuilder.PhaseOneResult, CFGBuilder.TryCatchFrame, CFGBuilder.TryFinallyFrame, CFGBuilder.TryFrame, CFGBuilder.TryStack, CFGBuilder.Tuple<A,B,C>, CFGBuilder.UnconditionalJump
Modifier and Type | Field and Description |
---|---|
protected BaseTypeChecker |
checker
The associated checker.
|
protected AnnotatedTypeFactory |
factory
Type factory to provide types used during CFG building.
|
assumeAssertionsDisabled, assumeAssertionsEnabled, declaredClasses, declaredLambdas, exceptionalExitLabel, regularExitLabel
Constructor and Description |
---|
CFCFGBuilder(BaseTypeChecker checker,
AnnotatedTypeFactory factory) |
Modifier and Type | Method and Description |
---|---|
static boolean |
assumeAssertionsActivatedForAssertTree(SourceChecker checker,
AssertTree tree) |
ControlFlowGraph |
run(CompilationUnitTree root,
ProcessingEnvironment env,
UnderlyingAST underlyingAST)
Build the control flow graph of some code.
|
build, build, build, build, build, getDeclaredClasses, getDeclaredLambdas, printBlocks, run, run
protected final BaseTypeChecker checker
protected final AnnotatedTypeFactory factory
public CFCFGBuilder(BaseTypeChecker checker, AnnotatedTypeFactory factory)
public ControlFlowGraph run(CompilationUnitTree root, ProcessingEnvironment env, UnderlyingAST underlyingAST)
run
in class CFGBuilder
public static boolean assumeAssertionsActivatedForAssertTree(SourceChecker checker, AssertTree tree)