public class GraphQualifierHierarchy extends MultiGraphQualifierHierarchy
This class is immutable and can be only created through MultiGraphQualifierHierarchy.MultiGraphFactory
.
MultiGraphQualifierHierarchy.MultiGraphFactory
bottoms, polymorphicQualifier, polyQualifiers, supertypesGraph, supertypesMap, tops
Constructor and Description |
---|
GraphQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory f,
javax.lang.model.element.AnnotationMirror bottom) |
Modifier and Type | Method and Description |
---|---|
protected void |
finish(QualifierHierarchy qualHierarchy,
java.util.Map<javax.lang.model.element.AnnotationMirror,java.util.Set<javax.lang.model.element.AnnotationMirror>> fullMap,
java.util.Map<javax.lang.model.element.AnnotationMirror,javax.lang.model.element.AnnotationMirror> polyQualifiers,
java.util.Set<javax.lang.model.element.AnnotationMirror> tops,
java.util.Set<javax.lang.model.element.AnnotationMirror> bottoms,
java.lang.Object... args)
Method to finalize the qualifier hierarchy before it becomes unmodifiable.
|
java.util.Set<? extends javax.lang.model.element.AnnotationMirror> |
getBottomAnnotations() |
java.util.Set<? extends javax.lang.model.element.AnnotationMirror> |
getTopAnnotations()
Returns the top qualifier for this hierarchy.
|
boolean |
isSubtype(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> rhs,
java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> lhs)
Tests whether there is any annotation in lhs that is a super qualifier of some annotation in
rhs.
|
addPolyRelations, buildFullMap, findBottoms, findLub, findTops, getBottomAnnotation, getPolymorphicAnnotation, getTopAnnotation, getTypeQualifiers, greatestLowerBound, greatestLowerBoundTypeVariable, isSubtype, isSubtypeTypeVariable, isSubtypeTypeVariable, leastUpperBound, leastUpperBoundTypeVariable, toString
canHaveEmptyAnnotationSet, findAnnotationInHierarchy, findAnnotationInSameHierarchy, findCorrespondingAnnotation, getAnnotationInHierarchy, getWidth, greatestLowerBound, greatestLowerBounds, greatestLowerBounds, greatestLowerBoundsTypeVariable, isSubtype, isSubtype, isValid, leastUpperBound, leastUpperBounds, leastUpperBounds, leastUpperBoundsTypeVariable, numberOfIterationsBeforeWidening, replacePolyAll, updateMappingToMutableSet, widenedUpperBound
public GraphQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory f, javax.lang.model.element.AnnotationMirror bottom)
protected void finish(QualifierHierarchy qualHierarchy, java.util.Map<javax.lang.model.element.AnnotationMirror,java.util.Set<javax.lang.model.element.AnnotationMirror>> fullMap, java.util.Map<javax.lang.model.element.AnnotationMirror,javax.lang.model.element.AnnotationMirror> polyQualifiers, java.util.Set<javax.lang.model.element.AnnotationMirror> tops, java.util.Set<javax.lang.model.element.AnnotationMirror> bottoms, java.lang.Object... args)
MultiGraphQualifierHierarchy
finish
in class MultiGraphQualifierHierarchy
public java.util.Set<? extends javax.lang.model.element.AnnotationMirror> getTopAnnotations()
The top qualifier is inferred from the hierarchy, as being the only one without any super qualifiers
getTopAnnotations
in class MultiGraphQualifierHierarchy
public java.util.Set<? extends javax.lang.model.element.AnnotationMirror> getBottomAnnotations()
getBottomAnnotations
in class MultiGraphQualifierHierarchy
public boolean isSubtype(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> rhs, java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> lhs)
QualifierHierarchy
isSubtype
in class MultiGraphQualifierHierarchy