Package ca.ubc.stat.blang.blangDsl
Enum VariableType
java.lang.Object
java.lang.Enum<VariableType>
ca.ubc.stat.blang.blangDsl.VariableType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VariableType>
,java.lang.constant.Constable
,org.eclipse.emf.common.util.Enumerator
public enum VariableType extends java.lang.Enum<VariableType> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Variable Type',
and utility methods for working with them.
- See Also:
BlangDslPackage.getVariableType()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static int
PARAM_VALUE
The 'PARAM' literal value.static int
RANDOM_VALUE
The 'RANDOM' literal value.static java.util.List<VariableType>
VALUES
A public read-only list of all the 'Variable Type' enumerators. -
Method Summary
Modifier and Type Method Description static VariableType
get(int value)
Returns the 'Variable Type' literal with the specified integer value.static VariableType
get(java.lang.String literal)
Returns the 'Variable Type' literal with the specified literal value.static VariableType
getByName(java.lang.String name)
Returns the 'Variable Type' literal with the specified name.java.lang.String
getLiteral()
java.lang.String
getName()
int
getValue()
java.lang.String
toString()
Returns the literal value of the enumerator, which is its string representation.static VariableType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VariableType[]
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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
RANDOM
The 'RANDOM' literal object.- See Also:
RANDOM_VALUE
-
PARAM
The 'PARAM' literal object.- See Also:
PARAM_VALUE
-
-
Field Details
-
RANDOM_VALUE
public static final int RANDOM_VALUEThe 'RANDOM' literal value.- See Also:
RANDOM
, Constant Field Values
-
PARAM_VALUE
public static final int PARAM_VALUEThe 'PARAM' literal value.- See Also:
PARAM
, Constant Field Values
-
VALUES
A public read-only list of all the 'Variable Type' enumerators.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
get
Returns the 'Variable Type' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
Returns the 'Variable Type' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
Returns the 'Variable Type' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public java.lang.String getName()- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public java.lang.String getLiteral()- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
public java.lang.String toString()Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classjava.lang.Enum<VariableType>
-