Class MirrorTypeFactory.MirrorEnumConstant
java.lang.Object
org.infinispan.protostream.annotations.impl.processor.types.MirrorTypeFactory.MirrorEnumConstant
- All Implemented Interfaces:
XElement, XEnumConstant
- Enclosing class:
MirrorTypeFactory
- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XClassprivate final VariableElementprivate final intprivate final int -
Constructor Summary
Constructors -
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
-
ordinal
private final int ordinal -
modifiers
private final int modifiers
-
-
Constructor Details
-
MirrorEnumConstant
MirrorEnumConstant(XClass declaringClass, VariableElement e, int ordinal)
-
-
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
-