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_baseMethodprivate java.util.Set<BindingFlags>_bindingFlagsprivate Type<?>_declaringTypeprivate int_modifiersprivate ParameterList_parametersprivate java.lang.reflect.Method_rawMethodprivate RuntimeTypeCache<?>_reflectedTypeCacheprivate SignatureType_signatureTypeprivate TypeList_thrownTypesprivate 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.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()(package private) java.util.Set<BindingFlags>getBindingFlags()java.lang.annotation.Annotation[]getDeclaredAnnotations()Type<?>getDeclaringType()MethodInfogetErasedMethodDefinition()intgetModifiers()java.lang.StringgetName()ParameterListgetParameters()java.lang.reflect.MethodgetRawMethod()Type<?>getReflectedType()Type<?>getReturnType()SignatureTypegetSignatureType()TypeListgetThrownTypes()protected TypeBindingsgetTypeBindings()booleanisAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)booleanisEquivalentTo(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:
getParametersin classMethodBase
-
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
-
getName
public java.lang.String getName()
- Overrides:
getNamein classMethodInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringTypein classMemberInfo
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedTypein classMemberInfo
-
getThrownTypes
public TypeList getThrownTypes()
- Overrides:
getThrownTypesin classMethodBase
-
getTypeBindings
protected TypeBindings getTypeBindings()
- Overrides:
getTypeBindingsin classMethodInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin classMemberInfo
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfacejava.lang.reflect.AnnotatedElement- Overrides:
isAnnotationPresentin classMethodInfo
-
getDeclaredAnnotations
@NotNull public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfacejava.lang.reflect.AnnotatedElement- Overrides:
getDeclaredAnnotationsin classMethodInfo
-
getAnnotations
@NotNull public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfacejava.lang.reflect.AnnotatedElement- Overrides:
getAnnotationsin 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
-
isEquivalentTo
public boolean isEquivalentTo(MemberInfo m)
- Overrides:
isEquivalentToin classMethodInfo
-
getErasedMethodDefinition
public MethodInfo getErasedMethodDefinition()
- Overrides:
getErasedMethodDefinitionin 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
-
-