public class Enum extends AbstractUserType
| Modifier and Type | Field and Description |
|---|---|
protected List<EnumConstant> |
constants |
fullyQualifiedName, parent, protoname, optionscomments, sourceCodeLocation| Constructor and Description |
|---|
Enum(UserTypeContainer parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstant(EnumConstant value) |
EnumConstant |
getConstant(String name) |
Set<String> |
getConstantNames() |
List<EnumConstant> |
getConstants() |
DescriptorType |
getDescriptorType() |
boolean |
isEnum()
Test if this type is enum.
|
boolean |
isMessage()
Test if this type is message.
|
boolean |
isScalar()
Test if this type is scalar.
|
void |
setConstants(List<EnumConstant> constants) |
String |
toString() |
getFullyQualifiedName, getParent, getProto, isMap, setFullyQualifiedName, setProtogetName, getOptions, setNameaddComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOptionsgetCommentLines, getComments, getSourceCodeLocationgetCanonicalNameprotected List<EnumConstant> constants
public Enum(UserTypeContainer parent)
public List<EnumConstant> getConstants()
public void setConstants(List<EnumConstant> constants)
public EnumConstant getConstant(String name)
public void addConstant(EnumConstant value)
public DescriptorType getDescriptorType()
public boolean isScalar()
FieldTypepublic boolean isEnum()
FieldTypepublic boolean isMessage()
FieldTypeCopyright © 2015–2016. All rights reserved.