Package org.eclipse.gmt.modisco.cobol
Enum COBOLInitialValueKind
- All Implemented Interfaces:
Serializable,Comparable<COBOLInitialValueKind>,java.lang.constant.Constable,org.eclipse.emf.common.util.Enumerator
public enum COBOLInitialValueKind extends Enum<COBOLInitialValueKind> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'COBOL Initial Value Kind',
and utility methods for working with them.
- See Also:
CobolPackage.getCOBOLInitialValueKind()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description CIVK_ALL_LITERALThe 'Civk all literal' literal object.CIVK_HIGH_VALUEThe 'Civk high value' literal object.CIVK_LOW_VALUEThe 'Civk low value' literal object.CIVK_NULLThe 'Civk null' literal object.CIVK_QUOTESThe 'Civk quotes' literal object.CIVK_STRING_VALUEThe 'Civk string value' literal object.CIVK_ZERO_VALUEThe 'Civk zero value' literal object. -
Field Summary
Fields Modifier and Type Field Description static intCIVK_ALL_LITERAL_VALUEThe 'Civk all literal' literal value.static intCIVK_HIGH_VALUE_VALUEThe 'Civk high value' literal value.static intCIVK_LOW_VALUE_VALUEThe 'Civk low value' literal value.static intCIVK_NULL_VALUEThe 'Civk null' literal value.static intCIVK_QUOTES_VALUEThe 'Civk quotes' literal value.static intCIVK_STRING_VALUE_VALUEThe 'Civk string value' literal value.static intCIVK_ZERO_VALUE_VALUEThe 'Civk zero value' literal value.static List<COBOLInitialValueKind>VALUESA public read-only list of all the 'COBOL Initial Value Kind' enumerators. -
Method Summary
Modifier and Type Method Description static COBOLInitialValueKindget(int value)Returns the 'COBOL Initial Value Kind' literal with the specified integer value.static COBOLInitialValueKindget(String literal)Returns the 'COBOL Initial Value Kind' literal with the specified literal value.static COBOLInitialValueKindgetByName(String name)Returns the 'COBOL Initial Value Kind' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static COBOLInitialValueKindvalueOf(String name)Returns the enum constant of this type with the specified name.static COBOLInitialValueKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CIVK_STRING_VALUE
The 'Civk string value' literal object.- See Also:
CIVK_STRING_VALUE_VALUE
-
CIVK_LOW_VALUE
The 'Civk low value' literal object.- See Also:
CIVK_LOW_VALUE_VALUE
-
CIVK_HIGH_VALUE
The 'Civk high value' literal object.- See Also:
CIVK_HIGH_VALUE_VALUE
-
CIVK_ZERO_VALUE
The 'Civk zero value' literal object.- See Also:
CIVK_ZERO_VALUE_VALUE
-
CIVK_QUOTES
The 'Civk quotes' literal object.- See Also:
CIVK_QUOTES_VALUE
-
CIVK_NULL
The 'Civk null' literal object.- See Also:
CIVK_NULL_VALUE
-
CIVK_ALL_LITERAL
The 'Civk all literal' literal object.- See Also:
CIVK_ALL_LITERAL_VALUE
-
-
Field Details
-
CIVK_STRING_VALUE_VALUE
public static final int CIVK_STRING_VALUE_VALUEThe 'Civk string value' literal value.- See Also:
CIVK_STRING_VALUE, Constant Field Values
-
CIVK_LOW_VALUE_VALUE
public static final int CIVK_LOW_VALUE_VALUEThe 'Civk low value' literal value.- See Also:
CIVK_LOW_VALUE, Constant Field Values
-
CIVK_HIGH_VALUE_VALUE
public static final int CIVK_HIGH_VALUE_VALUEThe 'Civk high value' literal value.- See Also:
CIVK_HIGH_VALUE, Constant Field Values
-
CIVK_ZERO_VALUE_VALUE
public static final int CIVK_ZERO_VALUE_VALUEThe 'Civk zero value' literal value.- See Also:
CIVK_ZERO_VALUE, Constant Field Values
-
CIVK_QUOTES_VALUE
public static final int CIVK_QUOTES_VALUEThe 'Civk quotes' literal value.- See Also:
CIVK_QUOTES, Constant Field Values
-
CIVK_NULL_VALUE
public static final int CIVK_NULL_VALUEThe 'Civk null' literal value.- See Also:
CIVK_NULL, Constant Field Values
-
CIVK_ALL_LITERAL_VALUE
public static final int CIVK_ALL_LITERAL_VALUEThe 'Civk all literal' literal value.- See Also:
CIVK_ALL_LITERAL, Constant Field Values
-
VALUES
A public read-only list of all the 'COBOL Initial Value Kind' 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns the 'COBOL Initial Value Kind' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null.
-
getByName
Returns the 'COBOL Initial Value Kind' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null.
-
get
Returns the 'COBOL Initial Value Kind' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classEnum<COBOLInitialValueKind>
-