public final class EnumDescriptor extends AnnotatedDescriptorImpl implements GenericDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
EnumDescriptor.Builder |
annotations, documentation, fullName, name, processedAnnotations
Modifier and Type | Method and Description |
---|---|
EnumValueDescriptor |
findValueByName(String name) |
EnumValueDescriptor |
findValueByNumber(int number) |
protected AnnotationConfiguration |
getAnnotationConfig(String annotationName)
Subclasses are responsible for fetching the AnnotationConfig from the appropriate place.
|
Descriptor |
getContainingType() |
FileDescriptor |
getFileDescriptor() |
List<Option> |
getOptions() |
Integer |
getTypeId() |
List<EnumValueDescriptor> |
getValues() |
String |
toString() |
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
protected AnnotationConfiguration getAnnotationConfig(String annotationName)
AnnotatedDescriptorImpl
getAnnotationConfig
in class AnnotatedDescriptorImpl
public FileDescriptor getFileDescriptor()
getFileDescriptor
in interface AnnotatedDescriptor
public Integer getTypeId()
getTypeId
in interface GenericDescriptor
public Descriptor getContainingType()
getContainingType
in interface GenericDescriptor
public List<EnumValueDescriptor> getValues()
public EnumValueDescriptor findValueByNumber(int number)
public EnumValueDescriptor findValueByName(String name)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.