public abstract class DfConstantType<T> extends java.lang.Object implements DfType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static <T> T |
getConstantOfType(DfType dfType,
java.lang.Class<T> clazz) |
abstract PsiType |
getPsiType() |
T |
getValue() |
int |
hashCode() |
static boolean |
isConst(DfType dfType,
java.lang.Object value) |
boolean |
isSuperType(DfType other)
Checks whether this type is the supertype of the supplied type, i.e.
|
DfType |
meet(DfType other)
Returns the least specific type that contains all values that belong both to this type and to other type.
|
static java.lang.String |
renderValue(java.lang.Object value) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isMergeable, join, tryNegate
public boolean isSuperType(DfType other)
DfType
isSuperType
in interface DfType
other
- other typepublic abstract PsiType getPsiType()
public DfType meet(DfType other)
DfType
public T getValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isConst(DfType dfType, java.lang.Object value)
dfType
- dfType to checkvalue
- constant valuepublic static <T> T getConstantOfType(DfType dfType, java.lang.Class<T> clazz)
T
- type of the constantdfType
- dfType to extract the constant value fromclazz
- desired constant classpublic static java.lang.String renderValue(java.lang.Object value)
value
- constant value