public enum CaptureType extends Enum<CaptureType> implements Enumerator
MetricSpecPackage.getCaptureType()| Enum Constant and Description |
|---|
IDENTIFIER
The 'Identifier' literal object.
|
INTEGER_NUMBER
The 'Integer Number' literal object.
|
REAL_NUMBER
The 'Real Number' literal object.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
IDENTIFIER_VALUE
The 'Identifier' literal value.
|
static int |
INTEGER_NUMBER_VALUE
The 'Integer Number' literal value.
|
static int |
REAL_NUMBER_VALUE
The 'Real Number' literal value.
|
static List<CaptureType> |
VALUES
A public read-only list of all the 'Capture Type' enumerators.
|
| Modifier and Type | Method and Description |
|---|---|
static CaptureType |
get(int value)
Returns the 'Capture Type' literal with the specified integer value.
|
static CaptureType |
get(String literal)
Returns the 'Capture Type' literal with the specified literal value.
|
static CaptureType |
getByName(String name)
Returns the 'Capture 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 CaptureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CaptureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaptureType IDENTIFIER
IDENTIFIER_VALUEpublic static final CaptureType INTEGER_NUMBER
INTEGER_NUMBER_VALUEpublic static final CaptureType REAL_NUMBER
REAL_NUMBER_VALUEpublic static final int IDENTIFIER_VALUE
IDENTIFIER,
Constant Field Valuespublic static final int INTEGER_NUMBER_VALUE
Unlimited integer numbers can contain integers in the range of [-\infty, ..., -1, 0, 1, ... , +\infty].
INTEGER_NUMBER,
Constant Field Valuespublic static final int REAL_NUMBER_VALUE
REAL_NUMBER,
Constant Field Valuespublic static final List<CaptureType> VALUES
public static CaptureType[] values()
for (CaptureType c : CaptureType.values()) System.out.println(c);
public static CaptureType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CaptureType get(String literal)
public static CaptureType getByName(String name)
public static CaptureType get(int value)
public int getValue()
getValue in interface Enumeratorpublic String getName()
getName in interface Enumeratorpublic String getLiteral()
getLiteral in interface Enumeratorpublic String toString()
toString in class Enum<CaptureType>