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:
java.lang.reflect.AnnotatedElement
class ReflectedMethod extends MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private MethodInfo
_baseMethod
private TypeBindings
_bindings
private Type<?>
_declaringType
private ParameterList
_parameters
private java.lang.reflect.Method
_rawMethod
private Type<?>
_reflectedType
private SignatureType
_signatureType
private TypeList
_thrownTypes
-
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
Constructors Constructor Description ReflectedMethod(MethodInfo baseMethod, Type<?> declaringType, Type<?> reflectedType, java.lang.reflect.Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings)
ReflectedMethod(MethodInfo baseMethod, Type<?> declaringType, java.lang.reflect.Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
appendErasedDescription(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendErasedSignature(java.lang.StringBuilder sb)
<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)
java.lang.annotation.Annotation[]
getAnnotations()
CallingConvention
getCallingConvention()
java.lang.annotation.Annotation[]
getDeclaredAnnotations()
Type<?>
getDeclaringType()
MethodInfo
getErasedMethodDefinition()
int
getModifiers()
ParameterList
getParameters()
java.lang.reflect.Method
getRawMethod()
Type<?>
getReflectedType()
Type<?>
getReturnType()
SignatureType
getSignatureType()
TypeList
getThrownTypes()
protected TypeBindings
getTypeBindings()
boolean
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.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 Detail
-
_baseMethod
private final MethodInfo _baseMethod
-
_declaringType
private final Type<?> _declaringType
-
_rawMethod
private final java.lang.reflect.Method _rawMethod
-
_parameters
private final ParameterList _parameters
-
_signatureType
private final SignatureType _signatureType
-
_bindings
private final TypeBindings _bindings
-
_thrownTypes
private final TypeList _thrownTypes
-
_reflectedType
private final Type<?> _reflectedType
-
-
Constructor Detail
-
ReflectedMethod
ReflectedMethod(MethodInfo baseMethod, Type<?> declaringType, java.lang.reflect.Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings)
-
ReflectedMethod
ReflectedMethod(MethodInfo baseMethod, Type<?> declaringType, Type<?> reflectedType, java.lang.reflect.Method rawMethod, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings bindings)
-
-
Method Detail
-
getReturnType
public Type<?> getReturnType()
- Specified by:
getReturnType
in classMethodInfo
-
getSignatureType
public SignatureType getSignatureType()
- Specified by:
getSignatureType
in classMethodBase
-
getRawMethod
public java.lang.reflect.Method getRawMethod()
- Specified by:
getRawMethod
in classMethodInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringType
in classMemberInfo
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedType
in classMemberInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in classMemberInfo
-
getParameters
public ParameterList getParameters()
- Overrides:
getParameters
in classMethodBase
-
getThrownTypes
public TypeList getThrownTypes()
- Overrides:
getThrownTypes
in classMethodBase
-
getCallingConvention
public CallingConvention getCallingConvention()
- Overrides:
getCallingConvention
in classMethodBase
-
getTypeBindings
protected TypeBindings getTypeBindings()
- Overrides:
getTypeBindings
in classMethodInfo
-
getErasedMethodDefinition
public MethodInfo getErasedMethodDefinition()
- Overrides:
getErasedMethodDefinition
in classMethodInfo
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotation
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotation
in classMethodInfo
-
getAnnotations
@NotNull public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotations
in classMethodInfo
-
getDeclaredAnnotations
@NotNull public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getDeclaredAnnotations
in classMethodInfo
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresent
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
isAnnotationPresent
in classMethodInfo
-
appendErasedDescription
public java.lang.StringBuilder appendErasedDescription(java.lang.StringBuilder sb)
- Overrides:
appendErasedDescription
in classMethodInfo
-
appendErasedSignature
public java.lang.StringBuilder appendErasedSignature(java.lang.StringBuilder sb)
- Overrides:
appendErasedSignature
in classMethodInfo
-
-