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 MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendModifiers(StringBuilder s, int modifiers) booleancontainsGenericParameter(Type<?> genericParameter) boolean(package private) static MethodInfodeclaredOn(MethodInfo method, Type<?> declaringType, Type<?> reflectedType) static MethodInfo[]findBaseMethod(Type<?> relativeTo) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) final MemberTypegetName()abstract Methodabstract Type<?> protected TypeBindingsfinal booleanbooleanisAnnotationPresent(Class<? extends Annotation> annotationClass) final booleanbooleanbooleanbooleanmakeGenericMethod(Type<?>... typeArguments) makeGenericMethod(TypeList typeArguments) (package private) static MethodInforeflectedOn(MethodInfo method, Type<?> reflectedType) Methods inherited from class MethodBase
getCallingConvention, getParameters, getSignatureType, getThrownTypesMethods inherited from class 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:
getMemberTypein classMemberInfo
-
getRawMethod
-
getDefaultValue
-
getName
- Specified by:
getNamein classMemberInfo
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement- Overrides:
getAnnotationin classMemberInfo
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement- Overrides:
getAnnotationsin classMemberInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsin classMemberInfo
-
isEquivalentTo
- Overrides:
isEquivalentToin classMethodBase
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement- Overrides:
isAnnotationPresentin classMemberInfo
-
invoke
-
findOverriddenMethod
-
findBaseMethod
-
appendModifiers
-
appendDescription
- Specified by:
appendDescriptionin classMemberInfo
-
appendSimpleDescription
- Specified by:
appendSimpleDescriptionin classMemberInfo
-
appendBriefDescription
- Specified by:
appendBriefDescriptionin classMemberInfo
-
appendErasedDescription
- Specified by:
appendErasedDescriptionin classMemberInfo
-
appendSignature
- Specified by:
appendSignaturein classMemberInfo
-
appendErasedSignature
- Specified by:
appendErasedSignaturein classMemberInfo
-
isGenericMethod
public boolean isGenericMethod() -
isGenericMethodDefinition
public boolean isGenericMethodDefinition() -
getTypeBindings
-
getTypeArguments
-
getGenericMethodParameters
-
getGenericMethodDefinition
-
getErasedMethodDefinition
-
containsGenericParameters
public boolean containsGenericParameters() -
containsGenericParameter
- Specified by:
containsGenericParameterin classMethodBase
-
makeGenericMethod
-
makeGenericMethod
-
reflectedOn
-
declaredOn
-