public abstract class SymbolicExecutionCheck extends Object
| Constructor and Description |
|---|
SymbolicExecutionCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize(ExecutionState executionState,
MethodTree tree,
List<SymbolicValue> arguments)
called prior analysis of the given method.
|
protected void |
onAssignment(ExecutionState executionState,
Tree tree,
Symbol variable,
ExpressionTree expression)
Deprecated.
Required by CloseableVisitor. Should be properly documented if real needs arise.
|
protected void |
onExecutableElementInvocation(ExecutionState executionState,
Tree tree,
List<ExpressionTree> arguments)
called when a constructor or method is invoked.
|
protected void |
onTryResourceClosed(ExecutionState executionState,
SymbolicValue resource)
Deprecated.
called when a AutoCloseable resource of a try block is closed.
|
protected void |
onValueReturned(ExecutionState executionState,
ReturnStatementTree tree,
ExpressionTree expression)
called when a value is returned through a return statement.
|
protected void |
onValueUnreachable(ExecutionState executionState,
State state)
called when a value becomes unreachable.
|
protected void initialize(ExecutionState executionState, MethodTree tree, List<SymbolicValue> arguments)
executionState - execution statetree - method to be analyzedarguments - value of the arguments@Deprecated protected void onAssignment(ExecutionState executionState, Tree tree, Symbol variable, ExpressionTree expression)
protected void onExecutableElementInvocation(ExecutionState executionState, Tree tree, List<ExpressionTree> arguments)
executionState - execution statetree - method invocation, constructor tree or new class tree@Deprecated protected void onTryResourceClosed(ExecutionState executionState, SymbolicValue resource)
executionState - current execution statetree - declaration treeresource - value representing the autoclosed resourceprotected void onValueReturned(ExecutionState executionState, ReturnStatementTree tree, ExpressionTree expression)
executionState - execution statetree - treeexpression - returned expressionprotected void onValueUnreachable(ExecutionState executionState, State state)
executionState - execution statestate - of the value when it became unreachableCopyright © 2012–2015 SonarSource. All rights reserved.