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, getProcessedAnnotationclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationpublic FileDescriptor getFileDescriptor()
AnnotatedDescriptorgetFileDescriptor in interface AnnotatedDescriptornull)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 GenericDescriptorpublic Descriptor getContainingType()
getContainingType in interface GenericDescriptorprotected AnnotationConfiguration getAnnotationConfig(String annotationName)
AnnotatedDescriptorImplAnnotationConfiguration from the appropriate config (it it
exists) and to validate that the target is suitable.getAnnotationConfig in class AnnotatedDescriptorImplCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.