Package io.protostuff.compiler.model
Class EnumConstant
- java.lang.Object
-
- io.protostuff.compiler.model.AbstractElement
-
- io.protostuff.compiler.model.AbstractDescriptor
-
- io.protostuff.compiler.model.EnumConstant
-
- All Implemented Interfaces:
Descriptor,Element
public class EnumConstant extends AbstractDescriptor
Enum value (constant).- Author:
- Kostiantyn Shchepanovskyi
- See Also:
Enum
-
-
Field Summary
Fields Modifier and Type Field Description protected intvalue-
Fields inherited from class io.protostuff.compiler.model.AbstractDescriptor
name, options
-
Fields inherited from class io.protostuff.compiler.model.AbstractElement
comments, sourceCodeLocation
-
-
Constructor Summary
Constructors Constructor Description EnumConstant(Enum parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorTypegetDescriptorType()EnumgetParent()intgetValue()Returns numeric value of this enum constant that is used in serialized form.voidsetParent(Enum parent)voidsetValue(int value)StringtoString()-
Methods inherited from class io.protostuff.compiler.model.AbstractDescriptor
getName, getOptions, setName
-
Methods inherited from class io.protostuff.compiler.model.AbstractElement
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.protostuff.compiler.model.Element
getCommentLines, getComments, getSourceCodeLocation
-
-
-
-
Constructor Detail
-
EnumConstant
public EnumConstant(Enum parent)
-
-
Method Detail
-
getParent
public Enum getParent()
-
setParent
public void setParent(Enum parent)
-
getDescriptorType
public DescriptorType getDescriptorType()
-
getValue
public int getValue()
Returns numeric value of this enum constant that is used in serialized form.
-
setValue
public void setValue(int value)
-
-