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 BehaviorCache
behaviorCache
-
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 void
execute(MethodTree methodTree)
protected ExplodedGraphWalker
getWalker()
static boolean
methodCanNotBeOverriden(Symbol.MethodSymbol methodSymbol)
List<Tree.Kind>
nodesToVisit()
void
scanFile(JavaFileScannerContext context)
Method called after parsing and semantic analysis has been done on file.void
visitNode(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:JavaFileScanner
Method called after parsing and semantic analysis has been done on file.- Specified by:
scanFile
in interfaceJavaFileScanner
- Overrides:
scanFile
in classSubscriptionVisitor
- Parameters:
context
- Context of analysis containing the parsed tree.
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Specified by:
nodesToVisit
in classSubscriptionVisitor
-
visitNode
public void visitNode(Tree tree)
- Overrides:
visitNode
in classSubscriptionVisitor
-
execute
public void execute(MethodTree methodTree)
-
getWalker
protected ExplodedGraphWalker getWalker()
-
methodCanNotBeOverriden
public static boolean methodCanNotBeOverriden(Symbol.MethodSymbol methodSymbol)
-
-