Class MirrorTypeFactory.MirrorMethod
java.lang.Object
org.infinispan.protostream.annotations.impl.processor.types.MirrorTypeFactory.MirrorMethod
- All Implemented Interfaces:
HasModelElement,XElement,XExecutable,XMember,XMethod
- Enclosing class:
MirrorTypeFactory
private final class MirrorTypeFactory.MirrorMethod
extends Object
implements XMethod, HasModelElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MirrorTypeFactory.MirrorClassprivate final ExecutableElementprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionMirrorMethod(MirrorTypeFactory.MirrorClass declaringClass, ExecutableElement executableElement) -
Method Summary
Modifier and TypeMethodDescriptionDetermine the type argument of Optional, if the return is Optional, otherwise just return the return type.Determine 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.Get theElement, nevernull.intThe modifiers, as per java.lang.reflect.Modifier.getName()intString[]XClass[]getTypeArgument(int i) inthashCode()toString()private TypeMirrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.protostream.annotations.impl.types.XElement
isFinal, isPrivate, isPublic, isStaticMethods inherited from interface org.infinispan.protostream.annotations.impl.types.XMethod
isAbstract
-
Field Details
-
declaringClass
-
executableElement
-
modifiers
private final int modifiers
-
-
Constructor Details
-
MirrorMethod
MirrorMethod(MirrorTypeFactory.MirrorClass declaringClass, ExecutableElement executableElement)
-
-
Method Details
-
getReturnType
- Specified by:
getReturnTypein interfaceXMethod
-
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
-
determineOptionalReturnType
Description copied from interface:XMethodDetermine the type argument of Optional, if the return is Optional, otherwise just return the return type.- Specified by:
determineOptionalReturnTypein interfaceXMethod
-
unwrapOptionalReturnType
-
getParameterCount
public int getParameterCount()- Specified by:
getParameterCountin interfaceXExecutable
-
getParameterNames
- Specified by:
getParameterNamesin interfaceXExecutable
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceXExecutable
-
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
-
getElement
Description copied from interface:HasModelElementGet theElement, nevernull.- Specified by:
getElementin interfaceHasModelElement- Returns:
- the
Element, nevernull
-
equals
-
hashCode
public int hashCode() -
toString
-
toGenericString
- Specified by:
toGenericStringin interfaceXExecutable
-