public class SerializedEnumLiteral extends SerializedObjectBase
classHandlehandle, pool| Constructor and Description |
|---|
SerializedEnumLiteral(SerializedEntityPool pool,
int classHandle,
java.lang.String literalName)
Constructor with explicit value.
|
SerializedEnumLiteral(SerializedEntityPool pool,
SerializedEntityParser parser,
int classHandle)
Constructor from parser.
|
| Modifier and Type | Method and Description |
|---|---|
static <E extends java.lang.Enum<E>> |
createLiteral(SerializedEntityPool entityPool,
int enumClassHandle,
E value)
Creates a new literal for the given enum value with the given class and
returns a handle to the new object.
|
java.lang.String |
getLiteralName()
Returns the name of the literal.
|
protected byte |
getObjectTagConstant()
Returns the tag code for the object type.
|
protected void |
serializeObjectContent(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the object's content.
|
getClassHandle, getPlainClassHierarchy, serializeContentgetHandle, serializepublic SerializedEnumLiteral(SerializedEntityPool pool, SerializedEntityParser parser, int classHandle) throws java.io.IOException
java.io.IOExceptionpublic SerializedEnumLiteral(SerializedEntityPool pool, int classHandle, java.lang.String literalName)
protected byte getObjectTagConstant()
getObjectTagConstant in class SerializedObjectBaseprotected void serializeObjectContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serializeObjectContent in class SerializedObjectBasejava.io.IOExceptionpublic java.lang.String getLiteralName()
public static <E extends java.lang.Enum<E>> int createLiteral(SerializedEntityPool entityPool, int enumClassHandle, E value)