|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ValueType>
de.cau.cs.kieler.core.kexpressions.ValueType
public enum ValueType
A representation of the literals of the enumeration 'Value Type', and utility methods for working with them. Possible built-in types for values (e.g. for Varibales or Signals).
Default value is the PURE type which means that the ValuedObject does not contain any value at all (only makes sense for Signals).
HOST means that no actual type is given but the type in the hostType attribute should be used instead.
KExpressionsPackage.getValueType()
Enum Constant Summary | |
---|---|
BOOL
The 'BOOL' literal object. |
|
DOUBLE
The 'DOUBLE' literal object. |
|
FLOAT
The 'FLOAT' literal object. |
|
HOST
The 'HOST' literal object. |
|
INT
The 'INT' literal object. |
|
PURE
The 'PURE' literal object. |
|
STRING
The 'STRING' literal object. |
|
UNSIGNED
The 'UNSIGNED' literal object. |
Field Summary | |
---|---|
static int |
BOOL_VALUE
The 'BOOL' literal value. |
static int |
DOUBLE_VALUE
The 'DOUBLE' literal value. |
static int |
FLOAT_VALUE
The 'FLOAT' literal value. |
static int |
HOST_VALUE
The 'HOST' literal value. |
static int |
INT_VALUE
The 'INT' literal value. |
static int |
PURE_VALUE
The 'PURE' literal value. |
static int |
STRING_VALUE
The 'STRING' literal value. |
static int |
UNSIGNED_VALUE
The 'UNSIGNED' literal value. |
static List<ValueType> |
VALUES
A public read-only list of all the 'Value Type' enumerators. |
Method Summary | |
---|---|
static ValueType |
get(int value)
Returns the 'Value Type' literal with the specified integer value. |
static ValueType |
get(String literal)
Returns the 'Value Type' literal with the specified literal value. |
static ValueType |
getByName(String name)
Returns the 'Value Type' literal with the specified name. |
String |
getLiteral()
|
String |
getName()
|
int |
getValue()
|
String |
toString()
Returns the literal value of the enumerator, which is its string representation. |
static ValueType |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ValueType PURE
PURE_VALUE
public static final ValueType BOOL
BOOL_VALUE
public static final ValueType UNSIGNED
UNSIGNED_VALUE
public static final ValueType INT
INT_VALUE
public static final ValueType FLOAT
FLOAT_VALUE
public static final ValueType HOST
HOST_VALUE
public static final ValueType DOUBLE
DOUBLE_VALUE
public static final ValueType STRING
STRING_VALUE
Field Detail |
---|
public static final int PURE_VALUE
PURE
,
Constant Field Valuesliteral | = | pure |
public static final int BOOL_VALUE
If the meaning of 'BOOL' literal object isn't clear, there really should be more of a description here...
BOOL
,
Constant Field Valuesliteral | = | bool |
public static final int UNSIGNED_VALUE
If the meaning of 'UNSIGNED' literal object isn't clear, there really should be more of a description here...
UNSIGNED
,
Constant Field Valuesliteral | = | unsigned |
public static final int INT_VALUE
If the meaning of 'INT' literal object isn't clear, there really should be more of a description here...
INT
,
Constant Field Valuesliteral | = | int |
public static final int FLOAT_VALUE
If the meaning of 'FLOAT' literal object isn't clear, there really should be more of a description here...
FLOAT
,
Constant Field Valuesliteral | = | float |
public static final int HOST_VALUE
HOST
,
Constant Field Valuesliteral | = | host |
public static final int DOUBLE_VALUE
If the meaning of 'DOUBLE' literal object isn't clear, there really should be more of a description here...
DOUBLE
,
Constant Field Valuesliteral | = | double |
public static final int STRING_VALUE
If the meaning of 'STRING' literal object isn't clear, there really should be more of a description here...
STRING
,
Constant Field Valuesliteral | = | string |
public static final List<ValueType> VALUES
Method Detail |
---|
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ValueType get(String literal)
public static ValueType getByName(String name)
public static ValueType get(int value)
public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
public String toString()
toString
in class Enum<ValueType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |