public enum LanguageCode extends java.lang.Enum<LanguageCode> implements org.eclipse.emf.common.util.Enumerator
Enum Constant and Description |
---|
C_CODE_LITERAL |
CPP_CODE_LITERAL |
JAVA_CODE_LITERAL |
UNDEFINED_LITERAL |
Modifier and Type | Field and Description |
---|---|
static int |
C_CODE |
static int |
CPP_CODE |
static int |
JAVA_CODE |
static int |
UNDEFINED |
static java.util.List<LanguageCode> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static LanguageCode |
get(int value) |
static LanguageCode |
get(java.lang.String literal) |
static LanguageCode |
getByName(java.lang.String name) |
java.lang.String |
getLiteral() |
java.lang.String |
getName() |
int |
getValue() |
static LanguageCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LanguageCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageCode UNDEFINED_LITERAL
public static final LanguageCode C_CODE_LITERAL
public static final LanguageCode CPP_CODE_LITERAL
public static final LanguageCode JAVA_CODE_LITERAL
public static final int UNDEFINED
public static final int C_CODE
public static final int CPP_CODE
public static final int JAVA_CODE
public static final java.util.List<LanguageCode> VALUES
public static LanguageCode[] values()
for (LanguageCode c : LanguageCode.values()) System.out.println(c);
public static LanguageCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static LanguageCode get(java.lang.String literal)
public static LanguageCode getByName(java.lang.String name)
public static LanguageCode get(int value)
public java.lang.String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator
public java.lang.String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator