Enum Class SignalCodec
- All Implemented Interfaces:
Serializable,Comparable<SignalCodec>,Constable
Token signal type in IR.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSignal the beginning of a composite.Signal the beginning of a enum.Signal the beginning of a field.Signal the beginning of a group.Signal the beginning of a message.Signal the beginning of a set.Signal the beginning of variable data.Signal the choice in a set.Signal the encoding of a field.Signal the end of a composite.Signal the end of a enum.Signal end beginning of a field.Signal the end of a group.Signal the end of a message.Signal the end of a set.Signal the end of variable data.To be used to represent not present or null.Signal a value of an enum. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignalCodecget(short value) Lookup the enum value representing the value.shortvalue()The raw encoded value in the Java type representation.static SignalCodecReturns the enum constant of this class with the specified name.static SignalCodec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGIN_MESSAGE
Signal the beginning of a message. -
END_MESSAGE
Signal the end of a message. -
BEGIN_COMPOSITE
Signal the beginning of a composite. -
END_COMPOSITE
Signal the end of a composite. -
BEGIN_FIELD
Signal the beginning of a field. -
END_FIELD
Signal end beginning of a field. -
BEGIN_GROUP
Signal the beginning of a group. -
END_GROUP
Signal the end of a group. -
BEGIN_ENUM
Signal the beginning of a enum. -
VALID_VALUE
Signal a value of an enum. -
END_ENUM
Signal the end of a enum. -
BEGIN_SET
Signal the beginning of a set. -
CHOICE
Signal the choice in a set. -
END_SET
Signal the end of a set. -
BEGIN_VAR_DATA
Signal the beginning of variable data. -
END_VAR_DATA
Signal the end of variable data. -
ENCODING
Signal the encoding of a field. -
NULL_VAL
To be used to represent not present or null.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public short value()The raw encoded value in the Java type representation.- Returns:
- the raw value encoded.
-
get
Lookup the enum value representing the value.- Parameters:
value- encoded to be looked up.- Returns:
- the enum value representing the value.
-