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_baseMethodprivate TypeBindings_bindingsprivate Type<?>_declaringTypeprivate ParameterList_parametersprivate java.lang.reflect.Method_rawMethodprivate Type<?>_reflectedTypeprivate SignatureType_signatureTypeprivate 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.StringBuilderappendErasedDescription(java.lang.StringBuilder sb)java.lang.StringBuilderappendErasedSignature(java.lang.StringBuilder sb)<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)java.lang.annotation.Annotation[]getAnnotations()CallingConventiongetCallingConvention()java.lang.annotation.Annotation[]getDeclaredAnnotations()Type<?>getDeclaringType()MethodInfogetErasedMethodDefinition()intgetModifiers()ParameterListgetParameters()java.lang.reflect.MethodgetRawMethod()Type<?>getReflectedType()Type<?>getReturnType()SignatureTypegetSignatureType()TypeListgetThrownTypes()protected TypeBindingsgetTypeBindings()booleanisAnnotationPresent(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:
getReturnTypein classMethodInfo
-
getSignatureType
public SignatureType getSignatureType()
- Specified by:
getSignatureTypein classMethodBase
-
getRawMethod
public java.lang.reflect.Method getRawMethod()
- Specified by:
getRawMethodin classMethodInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringTypein classMemberInfo
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedTypein classMemberInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin classMemberInfo
-
getParameters
public ParameterList getParameters()
- Overrides:
getParametersin classMethodBase
-
getThrownTypes
public TypeList getThrownTypes()
- Overrides:
getThrownTypesin classMethodBase
-
getCallingConvention
public CallingConvention getCallingConvention()
- Overrides:
getCallingConventionin classMethodBase
-
getTypeBindings
protected TypeBindings getTypeBindings()
- Overrides:
getTypeBindingsin classMethodInfo
-
getErasedMethodDefinition
public MethodInfo getErasedMethodDefinition()
- Overrides:
getErasedMethodDefinitionin classMethodInfo
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotationin interfacejava.lang.reflect.AnnotatedElement- Overrides:
getAnnotationin classMethodInfo
-
getAnnotations
@NotNull public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfacejava.lang.reflect.AnnotatedElement- Overrides:
getAnnotationsin classMethodInfo
-
getDeclaredAnnotations
@NotNull public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfacejava.lang.reflect.AnnotatedElement- Overrides:
getDeclaredAnnotationsin classMethodInfo
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfacejava.lang.reflect.AnnotatedElement- Overrides:
isAnnotationPresentin classMethodInfo
-
appendErasedDescription
public java.lang.StringBuilder appendErasedDescription(java.lang.StringBuilder sb)
- Overrides:
appendErasedDescriptionin classMethodInfo
-
appendErasedSignature
public java.lang.StringBuilder appendErasedSignature(java.lang.StringBuilder sb)
- Overrides:
appendErasedSignaturein classMethodInfo
-
-