public class CheckerDispatcher extends Object implements CheckerContext
Constructor and 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 CheckerContext
public ExplodedGraph.Node getNode()
getNode
in interface CheckerContext
public void reportIssue(Tree tree, SECheck check, String message)
reportIssue
in interface CheckerContext
public void reportIssue(Tree tree, SECheck check, String message, Set<Flow> flows)
reportIssue
in interface CheckerContext
public void addTransition(ProgramState state)
addTransition
in interface CheckerContext
public void addExceptionalYield(SymbolicValue target, ProgramState exceptionalState, String exceptionFullyQualifiedName, SECheck check)
addExceptionalYield
in interface CheckerContext
public Object createSink()
createSink
in interface CheckerContext
public void executeCheckEndOfExecution()
public void executeCheckEndOfExecutionPath(ConstraintManager constraintManager)
public void init(MethodTree methodTree, CFG cfg)
public ConstraintManager getConstraintManager()
getConstraintManager
in interface CheckerContext
public 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.