de.cau.cs.kieler.core.kexpressions
Enum ValueType

java.lang.Object
  extended by java.lang.Enum<ValueType>
      extended by de.cau.cs.kieler.core.kexpressions.ValueType
All Implemented Interfaces:
Comparable<ValueType>, Enumerator

public enum ValueType
extends Enum<ValueType>
implements Enumerator

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.

See Also:
KExpressionsPackage.getValueType()
Rating red
Generated:
This code was automatically generated.
Model element

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

PURE

public static final ValueType PURE
The 'PURE' literal object.

See Also:
PURE_VALUE
Generated:
This code was automatically generated.
Ordered

BOOL

public static final ValueType BOOL
The 'BOOL' literal object.

See Also:
BOOL_VALUE
Generated:
This code was automatically generated.
Ordered

UNSIGNED

public static final ValueType UNSIGNED
The 'UNSIGNED' literal object.

See Also:
UNSIGNED_VALUE
Generated:
This code was automatically generated.
Ordered

INT

public static final ValueType INT
The 'INT' literal object.

See Also:
INT_VALUE
Generated:
This code was automatically generated.
Ordered

FLOAT

public static final ValueType FLOAT
The 'FLOAT' literal object.

See Also:
FLOAT_VALUE
Generated:
This code was automatically generated.
Ordered

HOST

public static final ValueType HOST
The 'HOST' literal object.

See Also:
HOST_VALUE
Generated:
This code was automatically generated.
Ordered

DOUBLE

public static final ValueType DOUBLE
The 'DOUBLE' literal object.

See Also:
DOUBLE_VALUE
Generated:
This code was automatically generated.
Ordered

STRING

public static final ValueType STRING
The 'STRING' literal object.

See Also:
STRING_VALUE
Generated:
This code was automatically generated.
Ordered
Field Detail

PURE_VALUE

public static final int PURE_VALUE
The 'PURE' literal value. Default value is the PURE type which means that the ValuedObject does not contain any value at all (only makes sense for Signals).

See Also:
PURE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=pure
Ordered

BOOL_VALUE

public static final int BOOL_VALUE
The 'BOOL' literal value.

If the meaning of 'BOOL' literal object isn't clear, there really should be more of a description here...

See Also:
BOOL, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=bool
Ordered

UNSIGNED_VALUE

public static final int UNSIGNED_VALUE
The 'UNSIGNED' literal value.

If the meaning of 'UNSIGNED' literal object isn't clear, there really should be more of a description here...

See Also:
UNSIGNED, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=unsigned
Ordered

INT_VALUE

public static final int INT_VALUE
The 'INT' literal value.

If the meaning of 'INT' literal object isn't clear, there really should be more of a description here...

See Also:
INT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=int
Ordered

FLOAT_VALUE

public static final int FLOAT_VALUE
The 'FLOAT' literal value.

If the meaning of 'FLOAT' literal object isn't clear, there really should be more of a description here...

See Also:
FLOAT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=float
Ordered

HOST_VALUE

public static final int HOST_VALUE
The 'HOST' literal value. HOST means that no actual type is given but the type in the hostType attribute should be used instead.

See Also:
HOST, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=host
Ordered

DOUBLE_VALUE

public static final int DOUBLE_VALUE
The 'DOUBLE' literal value.

If the meaning of 'DOUBLE' literal object isn't clear, there really should be more of a description here...

See Also:
DOUBLE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=double
Ordered

STRING_VALUE

public static final int STRING_VALUE
The 'STRING' literal value.

If the meaning of 'STRING' literal object isn't clear, there really should be more of a description here...

See Also:
STRING, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=string
Ordered

VALUES

public static final List<ValueType> VALUES
A public read-only list of all the 'Value Type' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

public static ValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ValueType c : ValueType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ValueType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static ValueType get(String literal)
Returns the 'Value Type' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static ValueType getByName(String name)
Returns the 'Value Type' literal with the specified name.

Generated:
This code was automatically generated.

get

public static ValueType get(int value)
Returns the 'Value Type' literal with the specified integer value.

Generated:
This code was automatically generated.

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
Generated:
This code was automatically generated.

getName

public String getName()

Specified by:
getName in interface Enumerator
Generated:
This code was automatically generated.

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator
Generated:
This code was automatically generated.

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<ValueType>
Generated:
This code was automatically generated.