Class Heuristics.Within
java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Boolean,Void>
 
org.checkerframework.framework.util.Heuristics.Matcher
org.checkerframework.framework.util.Heuristics.Within
- All Implemented Interfaces:
- TreeVisitor<Boolean,- Void> 
- Enclosing class:
- Heuristics
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.- 
Field SummaryFields inherited from class com.sun.source.util.SimpleTreeVisitorDEFAULT_VALUE
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.checkerframework.framework.util.Heuristics.MatcherdefaultAction, visitParenthesizedMethods inherited from class com.sun.source.util.SimpleTreeVisitorvisit, 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- 
WithinCreate a new Within matcher.- Parameters:
- matcher- the matcher that- Within.matchwill try, on every parent of the path it is given
 
 
- 
- 
Method Details- 
matchDescription copied from class:Heuristics.MatcherReturns true if the given path matches this Matcher.- Overrides:
- matchin class- Heuristics.Matcher
- Parameters:
- path- the path to test
- Returns:
- true if the given path matches this Matcher
 
 
-