public class CloseableVisitor extends SymbolicExecutionCheck
| Constructor and Description |
|---|
CloseableVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Set<Tree> |
getIssueTrees() |
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) |
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) |
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)
SymbolicExecutionCheckinitialize in class SymbolicExecutionCheckexecutionState - execution statetree - method to be analyzedarguments - value of the argumentsprotected void onAssignment(ExecutionState executionState, Tree tree, Symbol variable, ExpressionTree expression)
onAssignment in class SymbolicExecutionCheckprotected void onTryResourceClosed(ExecutionState executionState, SymbolicValue resource)
onTryResourceClosed in class SymbolicExecutionCheckexecutionState - current execution stateresource - value representing the autoclosed resourceprotected void onValueReturned(ExecutionState executionState, ReturnStatementTree tree, ExpressionTree expression)
SymbolicExecutionCheckonValueReturned in class SymbolicExecutionCheckexecutionState - execution statetree - treeexpression - returned expressionprotected void onExecutableElementInvocation(ExecutionState executionState, Tree tree, List<ExpressionTree> arguments)
SymbolicExecutionCheckonExecutableElementInvocation in class SymbolicExecutionCheckexecutionState - execution statetree - method invocation, constructor tree or new class treeprotected void onValueUnreachable(ExecutionState executionState, State state)
SymbolicExecutionCheckonValueUnreachable in class SymbolicExecutionCheckexecutionState - execution statestate - of the value when it became unreachableCopyright © 2012–2015 SonarSource. All rights reserved.