Package org.sonar.java.se
Class SymbolicExecutionVisitor
- java.lang.Object
-
- org.sonar.java.ast.visitors.SubscriptionVisitor
-
- org.sonar.java.se.SymbolicExecutionVisitor
-
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
public class SymbolicExecutionVisitor extends SubscriptionVisitor
-
-
Field Summary
Fields Modifier and Type Field Description BehaviorCachebehaviorCache-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description SymbolicExecutionVisitor(List<JavaFileScanner> executableScanners, BehaviorCache behaviorCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(MethodTree methodTree)protected ExplodedGraphWalkergetWalker()static booleanmethodCanNotBeOverriden(Symbol.MethodSymbol methodSymbol)List<Tree.Kind>nodesToVisit()voidscanFile(JavaFileScannerContext context)Method called after parsing and semantic analysis has been done on file.voidvisitNode(Tree tree)-
Methods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
hasSemantic, leaveFile, leaveNode, scanTree, setContext, visitToken, visitTrivia
-
-
-
-
Field Detail
-
behaviorCache
public BehaviorCache behaviorCache
-
-
Constructor Detail
-
SymbolicExecutionVisitor
public SymbolicExecutionVisitor(List<JavaFileScanner> executableScanners, BehaviorCache behaviorCache)
-
-
Method Detail
-
scanFile
public void scanFile(JavaFileScannerContext context)
Description copied from interface:JavaFileScannerMethod called after parsing and semantic analysis has been done on file.- Specified by:
scanFilein interfaceJavaFileScanner- Overrides:
scanFilein classSubscriptionVisitor- Parameters:
context- Context of analysis containing the parsed tree.
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Specified by:
nodesToVisitin classSubscriptionVisitor
-
visitNode
public void visitNode(Tree tree)
- Overrides:
visitNodein classSubscriptionVisitor
-
execute
public void execute(MethodTree methodTree)
-
getWalker
protected ExplodedGraphWalker getWalker()
-
methodCanNotBeOverriden
public static boolean methodCanNotBeOverriden(Symbol.MethodSymbol methodSymbol)
-
-