public final class Descriptor extends AnnotatedDescriptorImpl implements GenericDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
Descriptor.Builder |
| Modifier and Type | Field and Description |
|---|---|
private Descriptor |
containingType |
private java.util.List<EnumDescriptor> |
enumTypes |
private java.util.List<FieldDescriptor> |
fields |
private java.util.Map<java.lang.String,FieldDescriptor> |
fieldsByName |
private java.util.Map<java.lang.Integer,FieldDescriptor> |
fieldsByNumber |
private FileDescriptor |
fileDescriptor |
private java.util.List<Descriptor> |
nestedTypes |
private java.util.List<Option> |
options |
private java.lang.Integer |
typeId |
annotations, documentation, fullName, name, parsedAnnotations| Modifier | Constructor and Description |
|---|---|
private |
Descriptor(Descriptor.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
FieldDescriptor |
findFieldByName(java.lang.String name) |
FieldDescriptor |
findFieldByNumber(int number) |
protected AnnotationConfig<Descriptor> |
getAnnotationConfig(java.lang.String annotationName)
Subclasses are responsible for fetching the AnnotationConfig from the appropriate place.
|
Descriptor |
getContainingType() |
java.util.List<EnumDescriptor> |
getEnumTypes() |
java.util.List<FieldDescriptor> |
getFields() |
FileDescriptor |
getFileDescriptor() |
java.util.List<Descriptor> |
getNestedTypes() |
java.util.List<Option> |
getOptions() |
java.lang.Integer |
getTypeId() |
int |
hashCode() |
private void |
setContainingType(Descriptor containingType) |
(package private) void |
setFileDescriptor(FileDescriptor fileDescriptor) |
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationprivate java.lang.Integer typeId
private final java.util.List<Option> options
private final java.util.List<FieldDescriptor> fields
private final java.util.List<Descriptor> nestedTypes
private final java.util.List<EnumDescriptor> enumTypes
private final java.util.Map<java.lang.Integer,FieldDescriptor> fieldsByNumber
private final java.util.Map<java.lang.String,FieldDescriptor> fieldsByName
private FileDescriptor fileDescriptor
private Descriptor containingType
private Descriptor(Descriptor.Builder builder)
public FileDescriptor getFileDescriptor()
getFileDescriptor in interface AnnotatedDescriptorpublic java.util.List<Option> getOptions()
public java.util.List<FieldDescriptor> getFields()
public java.util.List<Descriptor> getNestedTypes()
public java.util.List<EnumDescriptor> getEnumTypes()
public FieldDescriptor findFieldByNumber(int number)
public FieldDescriptor findFieldByName(java.lang.String name)
void setFileDescriptor(FileDescriptor fileDescriptor)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Integer getTypeId()
getTypeId in interface GenericDescriptorpublic Descriptor getContainingType()
getContainingType in interface GenericDescriptorprivate void setContainingType(Descriptor containingType)
protected AnnotationConfig<Descriptor> getAnnotationConfig(java.lang.String annotationName)
AnnotatedDescriptorImplgetAnnotationConfig in class AnnotatedDescriptorImpl