Enum Constant and Description |
---|
ANY |
BOOLEAN |
FLOAT |
INT |
STRING |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
signature
The signature for the type it will be used in method calls
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSignature() |
boolean |
isCompatible(ValueType type)
To check that the type is compatible with another one
|
static ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType ANY
public static final ValueType STRING
public static final ValueType BOOLEAN
public static final ValueType INT
public static final ValueType FLOAT
public static final ValueType UNKNOWN
private final java.lang.String signature
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getSignature()
public boolean isCompatible(ValueType type)
type
- the type to be checked, must not be null