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, notInstanceOfTypes
default TypeConstraint join(TypeConstraint other)
join
in interface TypeConstraint
other
- other constraint to join withdefault TypeConstraint meet(TypeConstraint other)
meet
in interface TypeConstraint
other
- other constraint to meet withboolean isFinal()
default boolean isExact()
isExact
in interface TypeConstraint
default 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 TypeConstraint
default 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 notdefault boolean isSuperConstraintOf(TypeConstraint other)
isSuperConstraintOf
in interface TypeConstraint
other
- other constraint to checkdefault TypeConstraint tryNegate()
tryNegate
in interface TypeConstraint
default TypeConstraint instanceOf()
default TypeConstraint notInstanceOf()
default java.lang.String toShortString()
toShortString
in interface TypeConstraint
default java.lang.String getPresentationText(PsiType type)
getPresentationText
in interface TypeConstraint
type
- declared PsiType of the value