public static class Heuristics.Within extends Heuristics.Matcher
match() returns true if called on a path, any element of which matches the given
matcher (supplied at object initialization). That matcher is usually one that matches only
the leaf of a path, ignoring all other parts of it.DEFAULT_VALUE| Constructor and Description |
|---|
Within(Heuristics.Matcher matcher)
Create a new Within matcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(TreePath path)
Returns true if the given path matches this Matcher.
|
defaultAction, visitParenthesizedvisit, 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, visitWildcardpublic Within(Heuristics.Matcher matcher)
matcher - the matcher that Within.match will try, on every parent of the
path it is givenpublic boolean match(TreePath path)
Heuristics.Matchermatch in class Heuristics.Matcherpath - the path to test