Class MirrorTypeFactory.MirrorField
java.lang.Object
org.infinispan.protostream.annotations.impl.processor.types.MirrorTypeFactory.MirrorField
- Enclosing class:
MirrorTypeFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MirrorTypeFactory.MirrorClassprivate final XEnumConstantprivate final VariableElementprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionMirrorField(MirrorTypeFactory.MirrorClass c, VariableElement field, XEnumConstant enumConstant) -
Method Summary
Modifier and TypeMethodDescriptionDetermine element type of array or Collection.boolean<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()getType()getTypeArgument(int i) inthashCode()booleantoString()
-
Field Details
-
c
-
field
-
enumConstant
-
modifiers
private final int modifiers
-
-
Constructor Details
-
MirrorField
MirrorField(MirrorTypeFactory.MirrorClass c, VariableElement field, XEnumConstant enumConstant)
-
-
Method Details
-
getType
-
determineRepeatedElementType
Description copied from interface:XMemberDetermine element type of array or Collection. For (non-constructor) members (method or field) of type Collection or array only. Other implementations can just return null.- Specified by:
determineRepeatedElementTypein interfaceXMember
-
getTypeArgument
- Specified by:
getTypeArgumentin interfaceXElement
-
isEnumConstant
public boolean isEnumConstant()- Specified by:
isEnumConstantin interfaceXField
-
asEnumConstant
- Specified by:
asEnumConstantin interfaceXField
-
getName
-
getModifiers
public int getModifiers()Description copied from interface:XElementThe modifiers, as per java.lang.reflect.Modifier.- Specified by:
getModifiersin interfaceXElement
-
getDeclaringClass
- Specified by:
getDeclaringClassin interfaceXMember
-
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
-
equals
-
hashCode
-
toString
-