public class ConstraintMap extends Object
This really consists of these things:
target ⇒ constraints for target
)
Constructor and Description |
---|
ConstraintMap(ConstraintMap toCopy) |
ConstraintMap(Set<TypeVariable> targets) |
Modifier and Type | Method and Description |
---|---|
void |
addPrimaryEqualities(TypeVariable target,
QualifierHierarchy qualHierarchy,
AnnotationMirrorSet annos)
Add a constraint indicating that target has primary annotations equal to the given
annotations
|
void |
addPrimarySubtypes(TypeVariable target,
QualifierHierarchy qualifierHierarchy,
AnnotationMirrorSet annos)
Add a constraint indicating that target's primary annotations are subtypes of the given
annotations
|
void |
addPrimarySupertype(TypeVariable target,
QualifierHierarchy qualifierHierarchy,
AnnotationMirrorSet annos)
Add a constraint indicating that target's primary annotations are subtypes of the given
annotations
|
void |
addTargetEquality(TypeVariable target,
TypeVariable equivalent,
AnnotationMirrorSet hierarchies)
Add a constraint indicating that the equivalent is equal to target in the given qualifier
hierarchies
|
void |
addTargetSubtype(TypeVariable target,
TypeVariable supertype,
AnnotationMirrorSet hierarchies)
Add a constraint indicating that target is a subtype of supertype in the given qualifier
hierarchies
|
void |
addTargetSupertype(TypeVariable target,
TypeVariable subtype,
AnnotationMirrorSet hierarchies)
Add a constraint indicating that target is a supertype of subtype in the given qualifier
hierarchies
|
void |
addTypeEqualities(TypeVariable target,
AnnotatedTypeMirror type,
AnnotationMirrorSet hierarchies)
Add a constraint indicating that target is equal to type in the given hierarchies
|
void |
addTypeSubtype(TypeVariable target,
AnnotatedTypeMirror supertype,
AnnotationMirrorSet hierarchies)
Add a constraint indicating that target is a subtype of supertype in the given qualifier
hierarchies
|
void |
addTypeSupertype(TypeVariable target,
AnnotatedTypeMirror subtype,
AnnotationMirrorSet hierarchies)
Add a constraint indicating that target is a supertype of subtype in the given qualifier
hierarchies
|
TargetConstraints |
getConstraints(TypeVariable target)
Gets the equality, subtypes, and supertypes constraints for a particular target
|
Set<TypeVariable> |
getTargets() |
public ConstraintMap(Set<TypeVariable> targets)
public ConstraintMap(ConstraintMap toCopy)
public TargetConstraints getConstraints(TypeVariable target)
public Set<TypeVariable> getTargets()
public void addTargetEquality(TypeVariable target, TypeVariable equivalent, AnnotationMirrorSet hierarchies)
public void addPrimaryEqualities(TypeVariable target, QualifierHierarchy qualHierarchy, AnnotationMirrorSet annos)
public void addTargetSupertype(TypeVariable target, TypeVariable subtype, AnnotationMirrorSet hierarchies)
hierarchies
- a set of TOP annotationspublic void addTypeSupertype(TypeVariable target, AnnotatedTypeMirror subtype, AnnotationMirrorSet hierarchies)
hierarchies
- a set of TOP annotationspublic void addPrimarySupertype(TypeVariable target, QualifierHierarchy qualifierHierarchy, AnnotationMirrorSet annos)
public void addTargetSubtype(TypeVariable target, TypeVariable supertype, AnnotationMirrorSet hierarchies)
hierarchies
- a set of TOP annotationspublic void addTypeSubtype(TypeVariable target, AnnotatedTypeMirror supertype, AnnotationMirrorSet hierarchies)
hierarchies
- a set of TOP annotationspublic void addPrimarySubtypes(TypeVariable target, QualifierHierarchy qualifierHierarchy, AnnotationMirrorSet annos)
public void addTypeEqualities(TypeVariable target, AnnotatedTypeMirror type, AnnotationMirrorSet hierarchies)
hierarchies
- a set of TOP annotations