Class ReflectionTypeFactory.ReflectionEnumConstant
java.lang.Object
org.infinispan.protostream.annotations.impl.types.ReflectionTypeFactory.ReflectionEnumConstant
- All Implemented Interfaces:
XElement,XEnumConstant
- Enclosing class:
ReflectionTypeFactory
private static final class ReflectionTypeFactory.ReflectionEnumConstant
extends Object
implements XEnumConstant
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReflectionEnumConstant(XClass declaringClass, Enum<?> e, Field f) -
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) Returns this element's annotation if present.<A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationClass) Collect and concatenate the description text from the (possibly multiple)@ProtoDoc.valueannotations found on the element, in order of occurrence.intThe modifiers, as per java.lang.reflect.Modifier.getName()int
-
Field Details
-
declaringClass
-
e
-
f
-
-
Constructor Details
-
ReflectionEnumConstant
-
-
Method Details
-
getOrdinal
public int getOrdinal()- Specified by:
getOrdinalin interfaceXEnumConstant
-
getName
-
getModifiers
public int getModifiers()Description copied from interface:XElementThe modifiers, as per java.lang.reflect.Modifier.- Specified by:
getModifiersin interfaceXElement
-
getAnnotation
Description copied from interface:XElementReturns this element's annotation if present.- Specified by:
getAnnotationin interfaceXElement
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceXElement
-
getDocumentation
Description copied from interface:XElementCollect and concatenate the description text from the (possibly multiple)@ProtoDoc.valueannotations found on the element, in order of occurrence.- Specified by:
getDocumentationin interfaceXElement- Returns:
- the documentation or
nullif no doc or empty doc present
-
getDeclaringClass
- Specified by:
getDeclaringClassin interfaceXEnumConstant
-