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, getProcessedAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
protected AnnotationConfiguration getAnnotationConfig(String annotationName)
AnnotatedDescriptorImpl
AnnotationConfiguration
from the appropriate config (it it
exists) and to validate that the target is suitable.getAnnotationConfig
in class AnnotatedDescriptorImpl
public FileDescriptor getFileDescriptor()
AnnotatedDescriptor
getFileDescriptor
in interface AnnotatedDescriptor
null
)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 © 2020 JBoss, a division of Red Hat. All rights reserved.