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, wait
asDfType, fromDfType, isComparedByEquals, isExact, toShortString
public PsiType getPsiType(Project project)
getPsiType
in interface TypeConstraint
project
- current projectpublic TypeConstraint tryNegate()
tryNegate
in interface TypeConstraint
public TypeConstraint join(TypeConstraint other)
join
in interface TypeConstraint
other
- other constraint to join withpublic TypeConstraint meet(TypeConstraint other)
meet
in interface TypeConstraint
other
- other constraint to meet withpublic boolean isSuperConstraintOf(TypeConstraint other)
isSuperConstraintOf
in interface TypeConstraint
other
- other constraint to checkpublic java.lang.String getAssignabilityExplanation(TypeConstraint otherType, boolean expectedAssignable)
getAssignabilityExplanation
in interface TypeConstraint
otherType
- other typeexpectedAssignable
- whether other type is expected to be assignable from this, or notpublic <any> instanceOfTypes()
instanceOfTypes
in interface TypeConstraint
public <any> notInstanceOfTypes()
notInstanceOfTypes
in interface TypeConstraint
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPresentationText(PsiType type)
getPresentationText
in interface TypeConstraint
type
- declared PsiType of the value