Package com.strobel.reflection
Class ReflectedMethod
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.MethodBase
com.strobel.reflection.MethodInfo
com.strobel.reflection.ReflectedMethod
- All Implemented Interfaces:
AnnotatedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodInfo
private final TypeBindings
private final Type
<?> private final ParameterList
private final Method
private final Type
<?> private final SignatureType
private final TypeList
Fields inherited from class com.strobel.reflection.MethodInfo
_erasedMethodDefinition
Fields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
Constructor Summary
ConstructorsConstructorDescriptionReflectedMethod
(MethodInfo baseMethod, Type<?> declaringType, Type<?> reflectedType, Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings) ReflectedMethod
(MethodInfo baseMethod, Type<?> declaringType, Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings) -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) Type
<?> int
Type
<?> Type
<?> protected TypeBindings
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) Methods inherited from class com.strobel.reflection.MethodInfo
appendBriefDescription, appendDescription, appendModifiers, appendSignature, appendSimpleDescription, containsGenericParameter, containsGenericParameters, declaredOn, emptyMethods, findBaseMethod, findOverriddenMethod, getDefaultValue, getGenericMethodDefinition, getGenericMethodParameters, getMemberType, getName, getTypeArguments, invoke, isAbstract, isDefault, isEquivalentTo, isGenericMethod, isGenericMethodDefinition, makeGenericMethod, makeGenericMethod, reflectedOn
Methods inherited from class com.strobel.reflection.MemberInfo
appendGenericSignature, emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getSignature, getSimpleDescription, hashCode, invalidateCaches, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, toString
-
Field Details
-
_baseMethod
-
_declaringType
-
_rawMethod
-
_parameters
-
_signatureType
-
_bindings
-
_thrownTypes
-
_reflectedType
-
-
Constructor Details
-
ReflectedMethod
ReflectedMethod(MethodInfo baseMethod, Type<?> declaringType, Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings) -
ReflectedMethod
ReflectedMethod(MethodInfo baseMethod, Type<?> declaringType, Type<?> reflectedType, Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings)
-
-
Method Details
-
getReturnType
- Specified by:
getReturnType
in classMethodInfo
-
getSignatureType
- Specified by:
getSignatureType
in classMethodBase
-
getRawMethod
- Specified by:
getRawMethod
in classMethodInfo
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getReflectedType
- Overrides:
getReflectedType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
getParameters
- Overrides:
getParameters
in classMethodBase
-
getThrownTypes
- Overrides:
getThrownTypes
in classMethodBase
-
getCallingConvention
- Overrides:
getCallingConvention
in classMethodBase
-
getTypeBindings
- Overrides:
getTypeBindings
in classMethodInfo
-
getErasedMethodDefinition
- Overrides:
getErasedMethodDefinition
in classMethodInfo
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classMethodInfo
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classMethodInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classMethodInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classMethodInfo
-
appendErasedDescription
- Overrides:
appendErasedDescription
in classMethodInfo
-
appendErasedSignature
- Overrides:
appendErasedSignature
in classMethodInfo
-