public class EnumConstant extends AbstractDescriptor
Enum| Modifier and Type | Field and Description |
|---|---|
protected int |
value |
name, optionscomments, sourceCodeLocation| Constructor and Description |
|---|
EnumConstant(Enum parent) |
| Modifier and Type | Method and Description |
|---|---|
DescriptorType |
getDescriptorType() |
String |
getName()
Returns name of this enum constant (human-readable string).
|
Enum |
getParent() |
int |
getValue()
Returns numeric value of this enum constant that is used in serialized form.
|
void |
setParent(Enum parent) |
void |
setValue(int value) |
String |
toString() |
getOptions, setNameaddComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCommentLines, getComments, getSourceCodeLocationpublic EnumConstant(Enum parent)
public Enum getParent()
public void setParent(Enum parent)
public String getName()
getName in interface DescriptorgetName in class AbstractDescriptorpublic DescriptorType getDescriptorType()
public int getValue()
public void setValue(int value)
Copyright © 2015–2016. All rights reserved.