Package com.strobel.reflection
Class RuntimeMethodInfo
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.MethodBase
-
- com.strobel.reflection.MethodInfo
-
- com.strobel.reflection.RuntimeMethodInfo
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
final class RuntimeMethodInfo extends MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private MethodInfo
_baseMethod
private java.util.Set<BindingFlags>
_bindingFlags
private Type<?>
_declaringType
private int
_modifiers
private ParameterList
_parameters
private java.lang.reflect.Method
_rawMethod
private RuntimeTypeCache<?>
_reflectedTypeCache
private SignatureType
_signatureType
private TypeList
_thrownTypes
private TypeBindings
_typeBindings
-
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 RuntimeMethodInfo(MethodInfo baseMethod, java.lang.reflect.Method rawMethod, Type<?> declaringType, RuntimeTypeCache<?> reflectedTypeCache, int modifiers, java.util.Set<BindingFlags> bindingFlags, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings typeBindings)
-
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()
(package private) java.util.Set<BindingFlags>
getBindingFlags()
java.lang.annotation.Annotation[]
getDeclaredAnnotations()
Type<?>
getDeclaringType()
MethodInfo
getErasedMethodDefinition()
int
getModifiers()
java.lang.String
getName()
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)
boolean
isEquivalentTo(MemberInfo m)
-
Methods inherited from class com.strobel.reflection.MethodInfo
appendBriefDescription, appendDescription, appendModifiers, appendSignature, appendSimpleDescription, containsGenericParameter, containsGenericParameters, declaredOn, emptyMethods, findBaseMethod, findOverriddenMethod, getDefaultValue, getGenericMethodDefinition, getGenericMethodParameters, getMemberType, getTypeArguments, invoke, isAbstract, isDefault, isGenericMethod, isGenericMethodDefinition, makeGenericMethod, makeGenericMethod, reflectedOn
-
Methods inherited from class com.strobel.reflection.MethodBase
getCallingConvention
-
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
-
_rawMethod
private final java.lang.reflect.Method _rawMethod
-
_declaringType
private final Type<?> _declaringType
-
_reflectedTypeCache
private final RuntimeTypeCache<?> _reflectedTypeCache
-
_modifiers
private final int _modifiers
-
_bindingFlags
private final java.util.Set<BindingFlags> _bindingFlags
-
_parameters
private final ParameterList _parameters
-
_signatureType
private final SignatureType _signatureType
-
_thrownTypes
private final TypeList _thrownTypes
-
_typeBindings
private final TypeBindings _typeBindings
-
-
Constructor Detail
-
RuntimeMethodInfo
RuntimeMethodInfo(MethodInfo baseMethod, java.lang.reflect.Method rawMethod, Type<?> declaringType, RuntimeTypeCache<?> reflectedTypeCache, int modifiers, java.util.Set<BindingFlags> bindingFlags, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings typeBindings)
-
-
Method Detail
-
getBindingFlags
java.util.Set<BindingFlags> getBindingFlags()
-
getParameters
public ParameterList getParameters()
- Overrides:
getParameters
in classMethodBase
-
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
-
getName
public java.lang.String getName()
- Overrides:
getName
in classMethodInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringType
in classMemberInfo
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedType
in classMemberInfo
-
getThrownTypes
public TypeList getThrownTypes()
- Overrides:
getThrownTypes
in classMethodBase
-
getTypeBindings
protected TypeBindings getTypeBindings()
- Overrides:
getTypeBindings
in classMethodInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in classMemberInfo
-
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
-
getDeclaredAnnotations
@NotNull public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getDeclaredAnnotations
in classMethodInfo
-
getAnnotations
@NotNull public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotations
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
-
isEquivalentTo
public boolean isEquivalentTo(MemberInfo m)
- Overrides:
isEquivalentTo
in classMethodInfo
-
getErasedMethodDefinition
public MethodInfo getErasedMethodDefinition()
- Overrides:
getErasedMethodDefinition
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
-
-