Class Heuristics.Matcher
java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Boolean,Void>
org.checkerframework.framework.util.Heuristics.Matcher
- All Implemented Interfaces:
TreeVisitor<Boolean,
Void>
- Direct Known Subclasses:
Heuristics.OfKind
,Heuristics.OrMatcher
,Heuristics.PreceededBy
,Heuristics.Within
,Heuristics.WithinTrueBranch
- Enclosing class:
- Heuristics
A base class for tree-matching algorithms. Skips parentheses by default.
-
Field Summary
Fields inherited from class com.sun.source.util.SimpleTreeVisitor
DEFAULT_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
defaultAction
(Tree tree, Void p) boolean
Returns true if the given path matches this Matcher.visitParenthesized
(ParenthesizedTree tree, Void p) Methods inherited from class com.sun.source.util.SimpleTreeVisitor
visit, visit, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitGuardedPattern, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesizedPattern, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSwitchExpression, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield
-
Constructor Details
-
Matcher
public Matcher()
-
-
Method Details
-
defaultAction
- Overrides:
defaultAction
in classSimpleTreeVisitor<Boolean,
Void>
-
visitParenthesized
- Specified by:
visitParenthesized
in interfaceTreeVisitor<Boolean,
Void> - Overrides:
visitParenthesized
in classSimpleTreeVisitor<Boolean,
Void>
-
match
Returns true if the given path matches this Matcher.- Parameters:
path
- the path to test- Returns:
- true if the given path matches this Matcher
-