public final class EnumDescriptor extends AnnotatedDescriptorImpl implements GenericDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
EnumDescriptor.Builder |
annotations, documentation, fullName, name, parsedAnnotations
Modifier and Type | Method and Description |
---|---|
EnumValueDescriptor |
findValueByName(String name) |
EnumValueDescriptor |
findValueByNumber(int number) |
protected AnnotationConfig<EnumDescriptor> |
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() |
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
protected AnnotationConfig<EnumDescriptor> 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 © 2019 JBoss, a division of Red Hat. All rights reserved.