checkers.util
Class Heuristics.Matcher
java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Boolean,Void>
checkers.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
public static class Heuristics.Matcher
extends SimpleTreeVisitor<Boolean,Void>
A convenience class for tree-matching algorithms. Skips parentheses by
default.
Methods inherited from class com.sun.source.util.SimpleTreeVisitor |
visit, visit, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDisjointType, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitLabeledStatement, visitLiteral, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitVariable, visitWhileLoop, visitWildcard |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Heuristics.Matcher
public Heuristics.Matcher()
defaultAction
protected Boolean defaultAction(Tree node,
Void p)
- Overrides:
defaultAction
in class SimpleTreeVisitor<Boolean,Void>
visitParenthesized
public Boolean visitParenthesized(ParenthesizedTree node,
Void p)
- Specified by:
visitParenthesized
in interface TreeVisitor<Boolean,Void>
- Overrides:
visitParenthesized
in class SimpleTreeVisitor<Boolean,Void>
match
public boolean match(TreePath path)