Class DelegatingMethodInfo
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.MethodBase
com.strobel.reflection.MethodInfo
com.strobel.reflection.DelegatingMethodInfo
- All Implemented Interfaces:
AnnotatedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Type<?> private final MethodInfoprivate final Type<?> Fields inherited from class MethodInfo
_erasedMethodDefinitionFields inherited from class MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingMethodInfo(MethodInfo method, Type<?> reflectedType) DelegatingMethodInfo(MethodInfo method, Type<?> declaringType, Type<?> reflectedType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfindBaseMethod(Type<?> relativeTo) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) <T extends Annotation>
T[]getAnnotationsByType(Class<T> annotationClass) Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'.<T extends Annotation>
TgetDeclaredAnnotation(Class<T> annotationClass) <T extends Annotation>
T[]getDeclaredAnnotationsByType(Class<T> annotationClass) Type<?> Human-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers.Human-readable erased description of a type or member.Method that returns type erased signature of a type or member; suitable as non-generic signature some packages need.intgetName()Type<?> Type<?> Method that returns full generic signature of a type or member.Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names.booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanbooleanbooleanmakeGenericMethod(Type<?>... typeArguments) makeGenericMethod(TypeList typeArguments) toString()private static MethodInfounwrap(MethodInfo method) Methods inherited from class MethodInfo
appendModifiers, containsGenericParameter, declaredOn, emptyMethods, getMemberType, isAbstract, isDefault, reflectedOnMethods inherited from class MemberInfo
appendGenericSignature, emptyAnnotations, equals, hashCode, invalidateCaches, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
-
Field Details
-
_reflectedType
-
_declaringType
-
_methodInfo
-
-
Constructor Details
-
DelegatingMethodInfo
DelegatingMethodInfo(MethodInfo method, Type<?> reflectedType) -
DelegatingMethodInfo
DelegatingMethodInfo(MethodInfo method, Type<?> declaringType, Type<?> reflectedType)
-
-
Method Details
-
unwrap
-
getReturnType
- Specified by:
getReturnTypein classMethodInfo
-
getRawMethod
- Specified by:
getRawMethodin classMethodInfo
-
getDefaultValue
- Overrides:
getDefaultValuein classMethodInfo
-
getName
- Overrides:
getNamein classMethodInfo
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement- Overrides:
getAnnotationin classMethodInfo
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement- Overrides:
getAnnotationsin classMethodInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsin classMethodInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement- Overrides:
isAnnotationPresentin classMethodInfo
-
invoke
- Overrides:
invokein classMethodInfo
-
findOverriddenMethod
- Overrides:
findOverriddenMethodin classMethodInfo
-
findBaseMethod
- Overrides:
findBaseMethodin classMethodInfo
-
appendDescription
- Overrides:
appendDescriptionin classMethodInfo
-
appendSimpleDescription
- Overrides:
appendSimpleDescriptionin classMethodInfo
-
appendBriefDescription
- Overrides:
appendBriefDescriptionin classMethodInfo
-
appendErasedDescription
- Overrides:
appendErasedDescriptionin classMethodInfo
-
appendSignature
- Overrides:
appendSignaturein classMethodInfo
-
appendErasedSignature
- Overrides:
appendErasedSignaturein classMethodInfo
-
isGenericMethod
public boolean isGenericMethod()- Overrides:
isGenericMethodin classMethodInfo
-
isGenericMethodDefinition
public boolean isGenericMethodDefinition()- Overrides:
isGenericMethodDefinitionin classMethodInfo
-
getTypeBindings
- Overrides:
getTypeBindingsin classMethodInfo
-
getTypeArguments
- Overrides:
getTypeArgumentsin classMethodInfo
-
getGenericMethodParameters
- Overrides:
getGenericMethodParametersin classMethodInfo
-
getGenericMethodDefinition
- Overrides:
getGenericMethodDefinitionin classMethodInfo
-
getErasedMethodDefinition
- Overrides:
getErasedMethodDefinitionin classMethodInfo
-
containsGenericParameters
public boolean containsGenericParameters()- Overrides:
containsGenericParametersin classMethodInfo
-
makeGenericMethod
- Overrides:
makeGenericMethodin classMethodInfo
-
makeGenericMethod
- Overrides:
makeGenericMethodin classMethodInfo
-
getSignatureType
- Specified by:
getSignatureTypein classMethodBase
-
getParameters
- Overrides:
getParametersin classMethodBase
-
getThrownTypes
- Overrides:
getThrownTypesin classMethodBase
-
getCallingConvention
- Overrides:
getCallingConventionin classMethodBase
-
getDeclaringType
- Specified by:
getDeclaringTypein classMemberInfo
-
getReflectedType
- Overrides:
getReflectedTypein classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin classMemberInfo
-
getDeclaredAnnotation
- Specified by:
getDeclaredAnnotationin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationin classMemberInfo
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedElement- Overrides:
getAnnotationsByTypein classMemberInfo
-
getDeclaredAnnotationsByType
- Specified by:
getDeclaredAnnotationsByTypein interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsByTypein classMemberInfo
-
isEquivalentTo
- Overrides:
isEquivalentToin classMethodInfo
-
getSignature
Description copied from class:MemberInfoMethod that returns full generic signature of a type or member.- Overrides:
getSignaturein classMemberInfo
-
getErasedSignature
Description copied from class:MemberInfoMethod that returns type erased signature of a type or member; suitable as non-generic signature some packages need.- Overrides:
getErasedSignaturein classMemberInfo
-
getBriefDescription
Description copied from class:MemberInfoHuman-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'.- Overrides:
getBriefDescriptionin classMemberInfo
-
getDescription
Description copied from class:MemberInfoHuman-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers.- Overrides:
getDescriptionin classMemberInfo
-
getErasedDescription
Description copied from class:MemberInfoHuman-readable erased description of a type or member.- Overrides:
getErasedDescriptionin classMemberInfo
-
getSimpleDescription
Description copied from class:MemberInfoHuman-readable simple description of a type or member, which does not include information super type or fully-qualified type names.- Overrides:
getSimpleDescriptionin classMemberInfo
-
toString
- Overrides:
toStringin classMemberInfo
-