Package io.protostuff.parser
Class EnumField
- All Implemented Interfaces:
HasAnnotations
,HasName
,HasOptions
,HasProto
,Comparable<Field<?>>
Represents an enum field defined in a
Message
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.protostuff.parser.Field
Field.Bool, Field.Bytes, Field.Double, Field.Fixed32, Field.Fixed64, Field.Float, Field.Int32, Field.Int64, Field.Modifier, Field.Number<T>, Field.Reference, Field.SFixed32, Field.SFixed64, Field.SInt32, Field.SInt64, Field.String, Field.UInt32, Field.UInt64
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) EnumGroup
(package private) final EnumGroup.Value
Fields inherited from class io.protostuff.parser.Field
defaultValue, defaultValueConstant, extraOptions, modifier, name, number, owner, packable, standardOptions
Fields inherited from class io.protostuff.parser.AnnotationContainer
annotations, docs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEv()
getProto()
Returns field type for proto files.boolean
boolean
void
putExtraOption
(String key, Object value) Methods inherited from class io.protostuff.parser.Field
compareTo, getDefaultValue, getDefaultValueConstant, getExtraOptions, getModifier, getName, getNumber, getO, getOption, getOptions, getOwner, getStandardOptions, hasOption, isBoolField, isBytesField, isDelimited, isEnumField, isMessageField, isNumberField, isOptional, isPackable, isRepeated, isRequired, isStringField, putStandardOption, toString
Methods inherited from class io.protostuff.parser.AnnotationContainer
add, addAnnotations, addDoc, err, getA, getAnnotation, getAnnotationMap, getAnnotations, getDocs, hasAnnotation, isEmptyA
-
Field Details
-
ev
-
enumGroup
EnumGroup enumGroup -
defaultValueSet
boolean defaultValueSet
-
-
Constructor Details
-
EnumField
public EnumField() -
EnumField
-
EnumField
-
-
Method Details
-
getEv
-
putExtraOption
- Specified by:
putExtraOption
in interfaceHasOptions
- Overrides:
putExtraOption
in classField<EnumGroup.Value>
-
isDefaultValueSet
public boolean isDefaultValueSet()- Overrides:
isDefaultValueSet
in classField<EnumGroup.Value>
-
getEnumGroup
-
getJavaType
- Specified by:
getJavaType
in classField<EnumGroup.Value>
-
getRegularType
-
getDefaultValueAsString
- Overrides:
getDefaultValueAsString
in classField<EnumGroup.Value>
-
isSamePackage
public boolean isSamePackage() -
getRelativePath
-
getProto
- Specified by:
getProto
in interfaceHasProto
- Overrides:
getProto
in classField<EnumGroup.Value>
-
getProtoType
Description copied from class:Field
Returns field type for proto files. Scalar value types: https://developers.google.com/protocol-buffers/docs/proto#scalar- Overrides:
getProtoType
in classField<EnumGroup.Value>
- Returns:
- .proto type
-