Class ReflectionTypeFactory.ReflectionMethod
java.lang.Object
org.infinispan.protostream.annotations.impl.types.ReflectionTypeFactory.ReflectionMethod
- All Implemented Interfaces:
XElement, XExecutable, XMember, XMethod
- Enclosing class:
ReflectionTypeFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReflectionTypeFactory.ReflectionClassprivate final Method -
Constructor Summary
ConstructorsConstructorDescriptionReflectionMethod(ReflectionTypeFactory.ReflectionClass declaringClass, Method method) -
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.intThe modifiers, as per java.lang.reflect.Modifier.getName()intString[]XClass[]inthashCode()toString()private Class<?> private TypeMethods inherited from interface XMethod
isAbstract
-
Field Details
-
declaringClass
-
method
-
-
Constructor Details
-
ReflectionMethod
ReflectionMethod(ReflectionTypeFactory.ReflectionClass declaringClass, Method method)
-
-
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
-
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
-
unwrapOptionalReturnTypeGeneric
-
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
-
equals
-
hashCode
-
toString
-
toGenericString
- Specified by:
toGenericStringin interfaceXExecutable
-