public static final class TypeConstraint.Constrained extends java.lang.Object implements TypeConstraint
TypeConstraint.Constrained, TypeConstraint.Exact| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAssignabilityExplanation(TypeConstraint otherType,
boolean expectedAssignable) |
java.lang.String |
getPresentationText(PsiType type) |
PsiType |
getPsiType(Project project) |
int |
hashCode() |
<any> |
instanceOfTypes() |
boolean |
isSuperConstraintOf(TypeConstraint other) |
TypeConstraint |
join(TypeConstraint other) |
TypeConstraint |
meet(TypeConstraint other) |
<any> |
notInstanceOfTypes() |
java.lang.String |
toString() |
TypeConstraint |
tryNegate() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasDfType, fromDfType, isComparedByEquals, isExact, toShortStringpublic PsiType getPsiType(Project project)
getPsiType in interface TypeConstraintproject - current projectpublic TypeConstraint tryNegate()
tryNegate in interface TypeConstraintpublic TypeConstraint join(TypeConstraint other)
join in interface TypeConstraintother - other constraint to join withpublic TypeConstraint meet(TypeConstraint other)
meet in interface TypeConstraintother - other constraint to meet withpublic boolean isSuperConstraintOf(TypeConstraint other)
isSuperConstraintOf in interface TypeConstraintother - other constraint to checkpublic java.lang.String getAssignabilityExplanation(TypeConstraint otherType, boolean expectedAssignable)
getAssignabilityExplanation in interface TypeConstraintotherType - other typeexpectedAssignable - whether other type is expected to be assignable from this, or notpublic <any> instanceOfTypes()
instanceOfTypes in interface TypeConstraintpublic <any> notInstanceOfTypes()
notInstanceOfTypes in interface TypeConstraintpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPresentationText(PsiType type)
getPresentationText in interface TypeConstrainttype - declared PsiType of the value