public class TypeConstraints
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TypeConstraint |
BOTTOM
Bottom constraint (no actual type satisfies this)
|
static TypeConstraint.Exact |
EXACTLY_OBJECT
Exactly java.lang.Object class
|
static TypeConstraint |
TOP
Top constraint (no restriction; any non-primitive value satisfies this)
|
Constructor and Description |
---|
TypeConstraints() |
Modifier and Type | Method and Description |
---|---|
static TypeConstraint |
exact(PsiType type) |
static TypeConstraint |
instanceOf(PsiType type) |
public static final TypeConstraint TOP
public static final TypeConstraint BOTTOM
public static final TypeConstraint.Exact EXACTLY_OBJECT
public static TypeConstraint exact(PsiType type)
type
- PsiTypeBOTTOM
if the object of given type cannot be instantiated.public static TypeConstraint instanceOf(PsiType type)
type
- PsiType