Package com.tonic.analysis.query.ast
Interface ScopeVisitor<T>
-
- All Known Implementing Classes:
ScopeFilterVisitor
public interface ScopeVisitor<T>Visitor over the closed set of query scope variants.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TvisitAll(AllScope scope)Visits the unrestricted whole-project scope.TvisitClass(ClassScope scope)Visits a scope restricted to matching classes.TvisitDuring(DuringScope scope)Visits a scope restricted to events observed while matching methods execute.TvisitMethod(MethodScope scope)Visits a scope restricted to matching methods.
-
-
-
Method Detail
-
visitAll
T visitAll(AllScope scope)
Visits the unrestricted whole-project scope.- Parameters:
scope- the scope- Returns:
- the visitor result
-
visitClass
T visitClass(ClassScope scope)
Visits a scope restricted to matching classes.- Parameters:
scope- the scope- Returns:
- the visitor result
-
visitMethod
T visitMethod(MethodScope scope)
Visits a scope restricted to matching methods.- Parameters:
scope- the scope- Returns:
- the visitor result
-
visitDuring
T visitDuring(DuringScope scope)
Visits a scope restricted to events observed while matching methods execute.- Parameters:
scope- the scope- Returns:
- the visitor result
-
-