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, waitisMergeable, join, tryNegatepublic boolean isSuperType(DfType other)
DfTypeisSuperType in interface DfTypeother - other typepublic abstract PsiType getPsiType()
public DfType meet(DfType other)
DfTypepublic T getValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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