public final class FieldDescriptor extends AnnotatedDescriptorImpl implements AnnotatedDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
FieldDescriptor.Builder |
annotations, documentation, fullName, name, parsedAnnotations
Modifier and Type | Method and Description |
---|---|
protected AnnotationConfig<FieldDescriptor> |
getAnnotationConfig(String annotationName)
Subclasses are responsible for fetching the AnnotationConfig from the appropriate place.
|
Descriptor |
getContainingMessage() |
Object |
getDefaultValue() |
EnumDescriptor |
getEnumType() |
FileDescriptor |
getFileDescriptor() |
JavaType |
getJavaType() |
Descriptor |
getMessageType() |
int |
getNumber() |
Object |
getOptionByName(String name) |
List<Option> |
getOptions() |
Rule |
getRule() |
Type |
getType() |
String |
getTypeName() |
boolean |
hasDefaultValue() |
boolean |
isExtension() |
boolean |
isPacked() |
boolean |
isRepeated() |
boolean |
isRequired() |
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
public int getNumber()
public Type getType()
public Descriptor getMessageType()
public Rule getRule()
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()
getFileDescriptor
in interface AnnotatedDescriptor
public Descriptor getContainingMessage()
protected AnnotationConfig<FieldDescriptor> getAnnotationConfig(String annotationName)
AnnotatedDescriptorImpl
getAnnotationConfig
in class AnnotatedDescriptorImpl
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.