Class EnumDescriptor
java.lang.Object
org.infinispan.protostream.impl.AnnotatedDescriptorImpl
org.infinispan.protostream.descriptors.EnumDescriptor
- All Implemented Interfaces:
AnnotatedDescriptor
,GenericDescriptor
Represents an enum in a proto file.
- Since:
- 2.0
- Author:
- gustavonalle, [email protected]
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.infinispan.protostream.impl.AnnotatedDescriptorImpl
annotations, documentation, fullName, name, processedAnnotations
-
Method Summary
Modifier and TypeMethodDescriptionfindValueByName
(String name) findValueByNumber
(int number) protected AnnotationConfiguration
getAnnotationConfig
(String annotationName) Subclasses are responsible for fetching theAnnotationConfiguration
from the appropriate config (it it exists) and to validate that the target is suitable.Return the containing files's descriptortoString()
Methods inherited from class org.infinispan.protostream.impl.AnnotatedDescriptorImpl
getAnnotations, getAnnotationsConfig, getDocumentation, getFullName, getName, getProcessedAnnotation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.protostream.descriptors.AnnotatedDescriptor
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
-
Method Details
-
getAnnotationConfig
Description copied from class:AnnotatedDescriptorImpl
Subclasses are responsible for fetching theAnnotationConfiguration
from the appropriate config (it it exists) and to validate that the target is suitable.- Specified by:
getAnnotationConfig
in classAnnotatedDescriptorImpl
- Returns:
- null if the annotation is not found
-
getFileDescriptor
Description copied from interface:AnnotatedDescriptor
Return the containing files's descriptor- Specified by:
getFileDescriptor
in interfaceAnnotatedDescriptor
- Returns:
- the containing files's descriptor (never
null
)
-
getTypeId
- Specified by:
getTypeId
in interfaceGenericDescriptor
-
getContainingType
- Specified by:
getContainingType
in interfaceGenericDescriptor
-
getOptions
-
getOption
-
getValues
-
findValueByNumber
-
findValueByName
-
toString
-