public final class FieldDescriptor extends AnnotatedDescriptorImpl implements AnnotatedDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
FieldDescriptor.Builder |
annotations, documentation, fullName, name, processedAnnotations
Modifier and Type | Method and Description |
---|---|
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 |
getContainingMessage() |
Object |
getDefaultValue() |
EnumDescriptor |
getEnumType() |
FileDescriptor |
getFileDescriptor()
Return the containing files's descriptor
|
JavaType |
getJavaType() |
Label |
getLabel() |
Descriptor |
getMessageType() |
int |
getNumber() |
Option |
getOption(String name) |
Object |
getOptionByName(String name) |
List<Option> |
getOptions() |
Type |
getType() |
String |
getTypeName() |
boolean |
hasDefaultValue() |
boolean |
isExtension() |
boolean |
isPacked() |
boolean |
isRepeated() |
boolean |
isRequired() |
String |
toString() |
getAnnotations, getAnnotationsConfig, getDocumentation, getFullName, getName, getProcessedAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
public int getNumber()
public Type getType()
public Descriptor getMessageType()
public Label getLabel()
public boolean isRequired()
public boolean isRepeated()
public boolean isPacked()
public Object getDefaultValue()
public boolean isExtension()
public boolean hasDefaultValue()
public JavaType getJavaType()
public EnumDescriptor getEnumType()
public String getTypeName()
public FileDescriptor getFileDescriptor()
AnnotatedDescriptor
getFileDescriptor
in interface AnnotatedDescriptor
null
)public Descriptor getContainingMessage()
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.