public class SerializedEnumLiteral extends SerializedObjectBase
classHandle
handle, 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, serializeContent
getHandle, serialize
public SerializedEnumLiteral(SerializedEntityPool pool, SerializedEntityParser parser, int classHandle) throws java.io.IOException
java.io.IOException
public SerializedEnumLiteral(SerializedEntityPool pool, int classHandle, java.lang.String literalName)
protected byte getObjectTagConstant()
getObjectTagConstant
in class SerializedObjectBase
protected void serializeObjectContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serializeObjectContent
in class SerializedObjectBase
java.io.IOException
public java.lang.String getLiteralName()
public static <E extends java.lang.Enum<E>> int createLiteral(SerializedEntityPool entityPool, int enumClassHandle, E value)