Class Heuristics.Within
- java.lang.Object
 - 
- com.sun.source.util.SimpleTreeVisitor<java.lang.Boolean,java.lang.Void>
 - 
- org.checkerframework.framework.util.Heuristics.Matcher
 - 
- org.checkerframework.framework.util.Heuristics.Within
 
 
 
 
- 
- All Implemented Interfaces:
 com.sun.source.tree.TreeVisitor<java.lang.Boolean,java.lang.Void>
- Enclosing class:
 - Heuristics
 
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. 
- 
- 
Constructor Summary
Constructors Constructor Description Within(Heuristics.Matcher matcher)Create a new Within matcher. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(com.sun.source.util.TreePath path)Returns true if the given path matches this Matcher.- 
Methods inherited from class org.checkerframework.framework.util.Heuristics.Matcher
defaultAction, visitParenthesized 
- 
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, 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 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
Within
public Within(Heuristics.Matcher matcher)
Create a new Within matcher.- Parameters:
 matcher- the matcher thatWithin.matchwill try, on every parent of the path it is given
 
 - 
 
- 
Method Detail
- 
match
public boolean match(com.sun.source.util.TreePath path)
Description copied from class:Heuristics.MatcherReturns true if the given path matches this Matcher.- Overrides:
 matchin classHeuristics.Matcher- Parameters:
 path- the path to test- Returns:
 - true if the given path matches this Matcher
 
 
 - 
 
 -