Package com.strobel.reflection
Class GenericMethod
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.MethodBase
-
- com.strobel.reflection.MethodInfo
-
- com.strobel.reflection.GenericMethod
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
final class GenericMethod extends MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private MethodInfo
_genericMethodDefinition
private ParameterList
_parameters
private SignatureType
_signatureType
private 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 GenericMethod(TypeBindings typeBindings, MethodInfo genericMethodDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
appendErasedDescription(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendErasedSignature(java.lang.StringBuilder sb)
CallingConvention
getCallingConvention()
Type<?>
getDeclaringType()
MethodInfo
getGenericMethodDefinition()
int
getModifiers()
java.lang.String
getName()
ParameterList
getParameters()
java.lang.reflect.Method
getRawMethod()
Type<?>
getReturnType()
SignatureType
getSignatureType()
protected TypeBindings
getTypeBindings()
private Type<?>
resolveBindings(Type<?> type)
-
Methods inherited from class com.strobel.reflection.MethodInfo
appendBriefDescription, appendDescription, appendModifiers, appendSignature, appendSimpleDescription, containsGenericParameter, containsGenericParameters, declaredOn, emptyMethods, findBaseMethod, findOverriddenMethod, getAnnotation, getAnnotations, getDeclaredAnnotations, getDefaultValue, getErasedMethodDefinition, getGenericMethodParameters, getMemberType, getTypeArguments, invoke, isAbstract, isAnnotationPresent, isDefault, isEquivalentTo, isGenericMethod, isGenericMethodDefinition, makeGenericMethod, makeGenericMethod, reflectedOn
-
Methods inherited from class com.strobel.reflection.MethodBase
getThrownTypes
-
Methods inherited from class com.strobel.reflection.MemberInfo
appendGenericSignature, emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getReflectedType, getSignature, getSimpleDescription, hashCode, invalidateCaches, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, toString
-
-
-
-
Field Detail
-
_genericMethodDefinition
private final MethodInfo _genericMethodDefinition
-
_typeBindings
private final TypeBindings _typeBindings
-
_parameters
private final ParameterList _parameters
-
_signatureType
private final SignatureType _signatureType
-
-
Constructor Detail
-
GenericMethod
GenericMethod(TypeBindings typeBindings, MethodInfo genericMethodDefinition)
-
-
Method Detail
-
getTypeBindings
protected TypeBindings getTypeBindings()
- Overrides:
getTypeBindings
in classMethodInfo
-
getGenericMethodDefinition
public MethodInfo getGenericMethodDefinition()
- Overrides:
getGenericMethodDefinition
in classMethodInfo
-
getReturnType
public Type<?> getReturnType()
- Specified by:
getReturnType
in classMethodInfo
-
getSignatureType
public SignatureType getSignatureType()
- Specified by:
getSignatureType
in classMethodBase
-
getRawMethod
public java.lang.reflect.Method getRawMethod()
- Specified by:
getRawMethod
in classMethodInfo
-
getName
public java.lang.String getName()
- Overrides:
getName
in classMethodInfo
-
appendErasedDescription
public java.lang.StringBuilder appendErasedDescription(java.lang.StringBuilder sb)
- Overrides:
appendErasedDescription
in classMethodInfo
-
appendErasedSignature
public java.lang.StringBuilder appendErasedSignature(java.lang.StringBuilder sb)
- Overrides:
appendErasedSignature
in classMethodInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringType
in classMemberInfo
-
getParameters
public ParameterList getParameters()
- Overrides:
getParameters
in classMethodBase
-
getCallingConvention
public CallingConvention getCallingConvention()
- Overrides:
getCallingConvention
in classMethodBase
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in classMemberInfo
-
-