Package com.strobel.reflection
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 MethodInfo
private final Type
<?> 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
ConstructorsConstructorDescriptionDelegatingMethodInfo
(MethodInfo method, Type<?> reflectedType) DelegatingMethodInfo
(MethodInfo method, Type<?> declaringType, Type<?> reflectedType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
findBaseMethod
(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.int
getName()
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.boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
boolean
boolean
makeGenericMethod
(Type<?>... typeArguments) makeGenericMethod
(TypeList typeArguments) toString()
private static MethodInfo
unwrap
(MethodInfo method) Methods inherited from class com.strobel.reflection.MethodInfo
appendModifiers, containsGenericParameter, declaredOn, emptyMethods, getMemberType, isAbstract, isDefault, reflectedOn
Methods inherited from class com.strobel.reflection.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:
getReturnType
in classMethodInfo
-
getRawMethod
- Specified by:
getRawMethod
in classMethodInfo
-
getDefaultValue
- Overrides:
getDefaultValue
in classMethodInfo
-
getName
- Overrides:
getName
in classMethodInfo
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classMethodInfo
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classMethodInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classMethodInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classMethodInfo
-
invoke
- Overrides:
invoke
in classMethodInfo
-
findOverriddenMethod
- Overrides:
findOverriddenMethod
in classMethodInfo
-
findBaseMethod
- Overrides:
findBaseMethod
in classMethodInfo
-
appendDescription
- Overrides:
appendDescription
in classMethodInfo
-
appendSimpleDescription
- Overrides:
appendSimpleDescription
in classMethodInfo
-
appendBriefDescription
- Overrides:
appendBriefDescription
in classMethodInfo
-
appendErasedDescription
- Overrides:
appendErasedDescription
in classMethodInfo
-
appendSignature
- Overrides:
appendSignature
in classMethodInfo
-
appendErasedSignature
- Overrides:
appendErasedSignature
in classMethodInfo
-
isGenericMethod
public boolean isGenericMethod()- Overrides:
isGenericMethod
in classMethodInfo
-
isGenericMethodDefinition
public boolean isGenericMethodDefinition()- Overrides:
isGenericMethodDefinition
in classMethodInfo
-
getTypeBindings
- Overrides:
getTypeBindings
in classMethodInfo
-
getTypeArguments
- Overrides:
getTypeArguments
in classMethodInfo
-
getGenericMethodParameters
- Overrides:
getGenericMethodParameters
in classMethodInfo
-
getGenericMethodDefinition
- Overrides:
getGenericMethodDefinition
in classMethodInfo
-
getErasedMethodDefinition
- Overrides:
getErasedMethodDefinition
in classMethodInfo
-
containsGenericParameters
public boolean containsGenericParameters()- Overrides:
containsGenericParameters
in classMethodInfo
-
makeGenericMethod
- Overrides:
makeGenericMethod
in classMethodInfo
-
makeGenericMethod
- Overrides:
makeGenericMethod
in classMethodInfo
-
getSignatureType
- Specified by:
getSignatureType
in classMethodBase
-
getParameters
- Overrides:
getParameters
in classMethodBase
-
getThrownTypes
- Overrides:
getThrownTypes
in classMethodBase
-
getCallingConvention
- Overrides:
getCallingConvention
in classMethodBase
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getReflectedType
- Overrides:
getReflectedType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
getDeclaredAnnotation
- Specified by:
getDeclaredAnnotation
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotation
in classMemberInfo
-
getAnnotationsByType
- Specified by:
getAnnotationsByType
in interfaceAnnotatedElement
- Overrides:
getAnnotationsByType
in classMemberInfo
-
getDeclaredAnnotationsByType
- Specified by:
getDeclaredAnnotationsByType
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotationsByType
in classMemberInfo
-
isEquivalentTo
- Overrides:
isEquivalentTo
in classMethodInfo
-
getSignature
Description copied from class:MemberInfo
Method that returns full generic signature of a type or member.- Overrides:
getSignature
in classMemberInfo
-
getErasedSignature
Description copied from class:MemberInfo
Method that returns type erased signature of a type or member; suitable as non-generic signature some packages need.- Overrides:
getErasedSignature
in classMemberInfo
-
getBriefDescription
Description copied from class:MemberInfo
Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'.- Overrides:
getBriefDescription
in classMemberInfo
-
getDescription
Description copied from class:MemberInfo
Human-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers.- Overrides:
getDescription
in classMemberInfo
-
getErasedDescription
Description copied from class:MemberInfo
Human-readable erased description of a type or member.- Overrides:
getErasedDescription
in classMemberInfo
-
getSimpleDescription
Description copied from class:MemberInfo
Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names.- Overrides:
getSimpleDescription
in classMemberInfo
-
toString
- Overrides:
toString
in classMemberInfo
-