public static class Heuristics.OfKind extends Heuristics.Matcher
match()
returns true if called on a path whose leaf has the given kind (supplied at
object initialization).DEFAULT_VALUE
Constructor and Description |
---|
OfKind(Tree.Kind kind,
Heuristics.Matcher matcher) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(TreePath path)
Returns true if the given path matches this Matcher.
|
defaultAction, visitParenthesized
visit, visit, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard
public OfKind(Tree.Kind kind, Heuristics.Matcher matcher)
public boolean match(TreePath path)
Heuristics.Matcher
match
in class Heuristics.Matcher
path
- the path to test