public static interface TypeConstraint.Exact extends TypeConstraint
TypeConstraint.Constrained.TypeConstraint.Constrained, TypeConstraint.Exact| Modifier and Type | Method and Description |
|---|---|
default boolean |
canBeInstantiated() |
default java.lang.String |
getAssignabilityExplanation(TypeConstraint otherType,
boolean expectedAssignable) |
default java.lang.String |
getPresentationText(PsiType type) |
default TypeConstraint |
instanceOf() |
default <any> |
instanceOfTypes() |
boolean |
isAssignableFrom(TypeConstraint.Exact other) |
boolean |
isConvertibleFrom(TypeConstraint.Exact other) |
default boolean |
isExact() |
boolean |
isFinal() |
default boolean |
isSuperConstraintOf(TypeConstraint other) |
default TypeConstraint |
join(TypeConstraint other) |
default TypeConstraint |
meet(TypeConstraint other) |
default TypeConstraint |
notInstanceOf() |
<any> |
superTypes() |
default java.lang.String |
toShortString() |
default TypeConstraint |
tryNegate() |
asDfType, fromDfType, getPsiType, isComparedByEquals, notInstanceOfTypesdefault TypeConstraint join(TypeConstraint other)
join in interface TypeConstraintother - other constraint to join withdefault TypeConstraint meet(TypeConstraint other)
meet in interface TypeConstraintother - other constraint to meet withboolean isFinal()
default boolean isExact()
isExact in interface TypeConstraintdefault boolean canBeInstantiated()
<any> superTypes()
boolean isAssignableFrom(TypeConstraint.Exact other)
other - type to test assignabilityboolean isConvertibleFrom(TypeConstraint.Exact other)
other - type to test convertibilitydefault <any> instanceOfTypes()
instanceOfTypes in interface TypeConstraintdefault 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 notdefault boolean isSuperConstraintOf(TypeConstraint other)
isSuperConstraintOf in interface TypeConstraintother - other constraint to checkdefault TypeConstraint tryNegate()
tryNegate in interface TypeConstraintdefault TypeConstraint instanceOf()
default TypeConstraint notInstanceOf()
default java.lang.String toShortString()
toShortString in interface TypeConstraintdefault java.lang.String getPresentationText(PsiType type)
getPresentationText in interface TypeConstrainttype - declared PsiType of the value