Package com.strobel.reflection
Class MethodInfo
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.MethodBase
com.strobel.reflection.MethodInfo
- All Implemented Interfaces:
AnnotatedElement
- Direct Known Subclasses:
DelegatingMethodInfo
,DynamicMethod
,ErasedMethod
,GenericMethod
,MethodBuilder
,ReflectedMethod
,RuntimeMethodInfo
-
Field Summary
FieldsFields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendModifiers
(StringBuilder s, int modifiers) boolean
containsGenericParameter
(Type<?> genericParameter) boolean
(package private) static MethodInfo
declaredOn
(MethodInfo method, Type<?> declaringType, Type<?> reflectedType) static MethodInfo[]
findBaseMethod
(Type<?> relativeTo) <T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) final MemberType
getName()
abstract Method
abstract Type
<?> protected TypeBindings
final boolean
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) final boolean
boolean
boolean
boolean
makeGenericMethod
(Type<?>... typeArguments) makeGenericMethod
(TypeList typeArguments) (package private) static MethodInfo
reflectedOn
(MethodInfo method, Type<?> reflectedType) Methods inherited from class com.strobel.reflection.MethodBase
getCallingConvention, getParameters, getSignatureType, getThrownTypes
Methods inherited from class com.strobel.reflection.MemberInfo
appendGenericSignature, emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDeclaringType, getDescription, getErasedDescription, getErasedSignature, getModifiers, getReflectedType, getSignature, getSimpleDescription, hashCode, invalidateCaches, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, toString
-
Field Details
-
EMPTY_METHODS
-
_erasedMethodDefinition
-
-
Constructor Details
-
MethodInfo
public MethodInfo()
-
-
Method Details
-
emptyMethods
-
isAbstract
public final boolean isAbstract() -
isDefault
public final boolean isDefault() -
getReturnType
-
getMemberType
- Specified by:
getMemberType
in classMemberInfo
-
getRawMethod
-
getDefaultValue
-
getName
- Specified by:
getName
in classMemberInfo
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classMemberInfo
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classMemberInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classMemberInfo
-
isEquivalentTo
- Overrides:
isEquivalentTo
in classMethodBase
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classMemberInfo
-
invoke
-
findOverriddenMethod
-
findBaseMethod
-
appendModifiers
-
appendDescription
- Specified by:
appendDescription
in classMemberInfo
-
appendSimpleDescription
- Specified by:
appendSimpleDescription
in classMemberInfo
-
appendBriefDescription
- Specified by:
appendBriefDescription
in classMemberInfo
-
appendErasedDescription
- Specified by:
appendErasedDescription
in classMemberInfo
-
appendSignature
- Specified by:
appendSignature
in classMemberInfo
-
appendErasedSignature
- Specified by:
appendErasedSignature
in classMemberInfo
-
isGenericMethod
public boolean isGenericMethod() -
isGenericMethodDefinition
public boolean isGenericMethodDefinition() -
getTypeBindings
-
getTypeArguments
-
getGenericMethodParameters
-
getGenericMethodDefinition
-
getErasedMethodDefinition
-
containsGenericParameters
public boolean containsGenericParameters() -
containsGenericParameter
- Specified by:
containsGenericParameter
in classMethodBase
-
makeGenericMethod
-
makeGenericMethod
-
reflectedOn
-
declaredOn
-