public final class Descriptor extends AnnotatedDescriptorImpl implements GenericDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
Descriptor.Builder |
annotations, documentation, fullName, name, processedAnnotations
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
FieldDescriptor |
findFieldByName(String name) |
FieldDescriptor |
findFieldByNumber(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() |
List<EnumDescriptor> |
getEnumTypes() |
List<FieldDescriptor> |
getFields() |
FileDescriptor |
getFileDescriptor()
Return the containing files's descriptor
|
List<Descriptor> |
getNestedTypes() |
List<OneOfDescriptor> |
getOneOfs() |
Option |
getOption(String name) |
List<Option> |
getOptions() |
Integer |
getTypeId() |
int |
hashCode() |
String |
toString() |
getAnnotations, getAnnotationsConfig, getDocumentation, getFullName, getName, getProcessedAnnotation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
public FileDescriptor getFileDescriptor()
AnnotatedDescriptor
getFileDescriptor
in interface AnnotatedDescriptor
null
)public List<FieldDescriptor> getFields()
public List<OneOfDescriptor> getOneOfs()
public List<Descriptor> getNestedTypes()
public List<EnumDescriptor> getEnumTypes()
public FieldDescriptor findFieldByNumber(int number)
public FieldDescriptor findFieldByName(String name)
public Integer getTypeId()
getTypeId
in interface GenericDescriptor
public Descriptor getContainingType()
getContainingType
in interface GenericDescriptor
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
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.