CheckerContextpublic class CheckerDispatcher extends Object implements CheckerContext
| Constructor | Description |
|---|---|
CheckerDispatcher(ExplodedGraphWalker explodedGraphWalker,
List<SECheck> checks) |
public CheckerDispatcher(ExplodedGraphWalker explodedGraphWalker, List<SECheck> checks)
public boolean executeCheckPreStatement(Tree syntaxNode)
public void executeCheckPostStatement(Tree syntaxNode)
public ProgramState getState()
getState in interface CheckerContextpublic ExplodedGraph.Node getNode()
getNode in interface CheckerContextpublic void reportIssue(Tree tree, SECheck check, String message)
reportIssue in interface CheckerContextpublic void reportIssue(Tree tree, SECheck check, String message, Set<Flow> flows)
reportIssue in interface CheckerContextpublic void addTransition(ProgramState state)
addTransition in interface CheckerContextpublic void addExceptionalYield(SymbolicValue target, ProgramState exceptionalState, String exceptionFullyQualifiedName, SECheck check)
addExceptionalYield in interface CheckerContextpublic Object createSink()
createSink in interface CheckerContextpublic void executeCheckEndOfExecution()
public void executeCheckEndOfExecutionPath(ConstraintManager constraintManager)
public void init(MethodTree methodTree, CFG cfg)
public ConstraintManager getConstraintManager()
getConstraintManager in interface CheckerContextpublic void interruptedExecution(Exception interruptionCause)
@CheckForNull public Exception interruptionCause()
SECheck.interruptedExecution(CheckerContext).
Rest of the time, returns nullpublic AlwaysTrueOrFalseExpressionCollector alwaysTrueOrFalseExpressions()
alwaysTrueOrFalseExpressions in interface CheckerContext@CheckForNull public MethodBehavior methodBehavior()
@CheckForNull public MethodBehavior peekMethodBehavior(Symbol.MethodSymbol symbol)
Copyright © 2012–2018 SonarSource. All rights reserved.