public final class EnumDescriptor extends AnnotatedDescriptorImpl implements GenericDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumDescriptor.Builder |
| Modifier and Type | Field and Description |
|---|---|
private Descriptor |
containingType |
private FileDescriptor |
fileDescriptor |
private java.util.List<Option> |
options |
private java.lang.Integer |
typeId |
private java.util.Map<java.lang.String,EnumValueDescriptor> |
valueByName |
private java.util.Map<java.lang.Integer,EnumValueDescriptor> |
valueByNumber |
private java.util.List<EnumValueDescriptor> |
values |
annotations, documentation, fullName, name, parsedAnnotations| Modifier | Constructor and Description |
|---|---|
private |
EnumDescriptor(EnumDescriptor.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
EnumValueDescriptor |
findValueByName(java.lang.String name) |
EnumValueDescriptor |
findValueByNumber(int number) |
protected AnnotationConfig<EnumDescriptor> |
getAnnotationConfig(java.lang.String annotationName)
Subclasses are responsible for fetching the AnnotationConfig from the appropriate place.
|
Descriptor |
getContainingType() |
FileDescriptor |
getFileDescriptor() |
java.util.List<Option> |
getOptions() |
java.lang.Integer |
getTypeId() |
java.util.List<EnumValueDescriptor> |
getValues() |
(package private) void |
setContainingType(Descriptor containingType) |
(package private) void |
setFileDescriptor(FileDescriptor fileDescriptor) |
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationprivate java.lang.Integer typeId
private final java.util.List<Option> options
private final java.util.List<EnumValueDescriptor> values
private final java.util.Map<java.lang.Integer,EnumValueDescriptor> valueByNumber
private final java.util.Map<java.lang.String,EnumValueDescriptor> valueByName
private FileDescriptor fileDescriptor
private Descriptor containingType
private EnumDescriptor(EnumDescriptor.Builder builder)
protected AnnotationConfig<EnumDescriptor> getAnnotationConfig(java.lang.String annotationName)
AnnotatedDescriptorImplgetAnnotationConfig in class AnnotatedDescriptorImplpublic FileDescriptor getFileDescriptor()
getFileDescriptor in interface AnnotatedDescriptorpublic java.lang.Integer getTypeId()
getTypeId in interface GenericDescriptorpublic Descriptor getContainingType()
getContainingType in interface GenericDescriptorvoid setContainingType(Descriptor containingType)
public java.util.List<Option> getOptions()
public java.util.List<EnumValueDescriptor> getValues()
public EnumValueDescriptor findValueByNumber(int number)
public EnumValueDescriptor findValueByName(java.lang.String name)
void setFileDescriptor(FileDescriptor fileDescriptor)