|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcheckers.types.QualifierHierarchy
public abstract class QualifierHierarchy
Represents a type qualifiers hierarchy. All method parameter annotations need to be type qualifiers recognized within this hierarchy.
Constructor Summary | |
---|---|
QualifierHierarchy()
|
Method Summary | |
---|---|
abstract AnnotationMirror |
getRootAnnotation()
|
abstract Set<Name> |
getTypeQualifiers()
Returns the names of all type qualifiers in this type qualifier hierarchy |
abstract boolean |
inConflict(AnnotationMirror anno1,
AnnotationMirror anno2)
Check if the two annotations are in conflict. |
abstract boolean |
isSubtype(AnnotationMirror anno1,
AnnotationMirror anno2)
Tests whether anno1 is a super qualifier anno2, according to the type qualifiers hierarchy. |
boolean |
isSubtype(Collection<AnnotationMirror> rhs,
Collection<AnnotationMirror> lhs)
Tests whether there is any annotation in lhs that is a super qualifier of some annotation in rhs. |
AnnotationMirror |
validQualifier(Collection<AnnotationMirror> annos)
Finds the first type qualifiers in this hierarchy in the given list of qualifiers. |
List<AnnotationMirror> |
validQualifiers(Collection<AnnotationMirror> annos)
Returns a subset of the input that contains any qualifiers in this hierarchy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QualifierHierarchy()
Method Detail |
---|
public abstract AnnotationMirror getRootAnnotation()
public abstract Set<Name> getTypeQualifiers()
public abstract boolean isSubtype(AnnotationMirror anno1, AnnotationMirror anno2)
public boolean isSubtype(Collection<AnnotationMirror> rhs, Collection<AnnotationMirror> lhs)
public abstract boolean inConflict(AnnotationMirror anno1, AnnotationMirror anno2)
public List<AnnotationMirror> validQualifiers(Collection<AnnotationMirror> annos)
public AnnotationMirror validQualifier(Collection<AnnotationMirror> annos)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |