Class ExtImplsLocationCriterion
java.lang.Object
org.checkerframework.afu.annotator.find.ExtImplsLocationCriterion
- All Implemented Interfaces:
Criterion
A criterion to find a given extends or implements clause.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.checkerframework.afu.annotator.find.Criterion
Criterion.Kind -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()Returns the index of this.getKind()Gets the type of this criterion.booleanReturns true if this Criterion only permits type annotations, not declaration annotations.booleanisSatisfiedBy(@Nullable TreePath path) Determines if the given tree path is satisfied by this criterion.booleanisSatisfiedBy(@Nullable TreePath path, Tree leaf) Determines if the given tree path is satisfied by this criterion.toString()
-
Constructor Details
-
ExtImplsLocationCriterion
- Parameters:
classname- the class name; for debugging purposes only, not used to constraintyLoc- -1 for an extends clause, $ge; 0 for the zero-based implements clause
-
-
Method Details
-
isSatisfiedBy
Description copied from interface:CriterionDetermines if the given tree path is satisfied by this criterion.- Specified by:
isSatisfiedByin interfaceCriterion- Parameters:
path- the tree path to check against. May be null (in which case the result is false), for example in a call such asthis.isSatisfiedBy(path.getParentPath()).- Returns:
- true if this criterion is satisfied by the given path, false otherwise
-
isSatisfiedBy
Description copied from interface:CriterionDetermines if the given tree path is satisfied by this criterion.- Specified by:
isSatisfiedByin interfaceCriterion- Parameters:
path- the tree path to check against. May be null (in which case the result is false), for example in a call such asthis.isSatisfiedBy(path.getParentPath()).- Returns:
- true if this criterion is satisfied by the given path, false otherwise
-
isOnlyTypeAnnotationCriterion
public boolean isOnlyTypeAnnotationCriterion()Description copied from interface:CriterionReturns true if this Criterion only permits type annotations, not declaration annotations.- Specified by:
isOnlyTypeAnnotationCriterionin interfaceCriterion- Returns:
- true if this Criterion only permits type annotations, not declaration annotations
-
getIndex
Returns the index of this.- Returns:
- the index of this
-
getKind
Description copied from interface:CriterionGets the type of this criterion. -
toString
-