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
AnnotationConfiguration from the appropriate config (it it
exists) and to validate that the target is suitable. |
Descriptor |
getContainingType() |
FileDescriptor |
getFileDescriptor()
Return the containing files's descriptor
|
Option |
getOption(String name) |
List<Option> |
getOptions() |
Integer |
getTypeId() |
List<EnumValueDescriptor> |
getValues() |
String |
toString() |
getAnnotations, getAnnotationsConfig, getDocumentation, getFullName, getName, getProcessedAnnotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationprotected AnnotationConfiguration getAnnotationConfig(String annotationName)
AnnotatedDescriptorImplAnnotationConfiguration from the appropriate config (it it
exists) and to validate that the target is suitable.getAnnotationConfig in class AnnotatedDescriptorImplpublic FileDescriptor getFileDescriptor()
AnnotatedDescriptorgetFileDescriptor in interface AnnotatedDescriptornull)public Integer getTypeId()
getTypeId in interface GenericDescriptorpublic Descriptor getContainingType()
getContainingType in interface GenericDescriptorpublic List<EnumValueDescriptor> getValues()
public EnumValueDescriptor findValueByNumber(int number)
public EnumValueDescriptor findValueByName(String name)
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.