Package com.strobel.reflection
Class ErasedMethod
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.MethodBase
-
- com.strobel.reflection.MethodInfo
-
- com.strobel.reflection.ErasedMethod
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
final class ErasedMethod extends MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private MethodInfo_baseMethodprivate Type<?>_declaringTypeprivate ParameterList_parametersprivate 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 ErasedMethod(MethodInfo baseMethod, Type<?> declaringType, 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()java.lang.annotation.Annotation[]getDeclaredAnnotations()Type<?>getDeclaringType()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, getErasedMethodDefinition, 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
-
_declaringType
private final Type<?> _declaringType
-
_parameters
private final ParameterList _parameters
-
_signatureType
private final SignatureType _signatureType
-
_thrownTypes
private final TypeList _thrownTypes
-
_typeBindings
private final TypeBindings _typeBindings
-
-
Constructor Detail
-
ErasedMethod
ErasedMethod(MethodInfo baseMethod, Type<?> declaringType, ParameterList parameters, Type<?> returnType, TypeList thrownTypes, TypeBindings typeBindings)
-
-
Method Detail
-
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
-
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
-
-