Package com.strobel.reflection
Class DynamicMethod
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.MethodBase
com.strobel.reflection.MethodInfo
com.strobel.reflection.DynamicMethod
- All Implemented Interfaces:
AnnotatedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Method
private final MethodHandle
private final ParameterList
private final SignatureType
private static final Method
private static final Method
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
ConstructorsModifierConstructorDescriptionprivate
DynamicMethod
(MethodHandle methodHandle, Method invokeMethod) private
DynamicMethod
(MethodType methodType, Method invokeMethod) -
Method Summary
Modifier and TypeMethodDescriptionType
<?> int
Type
<?> static DynamicMethod
invoke
(MethodHandle methodHandle) static DynamicMethod
invoke
(MethodType methodType) static DynamicMethod
invokeExact
(MethodHandle methodHandle) static DynamicMethod
invokeExact
(MethodType methodType) Methods inherited from class com.strobel.reflection.MethodInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendModifiers, appendSignature, appendSimpleDescription, containsGenericParameter, containsGenericParameters, declaredOn, emptyMethods, findBaseMethod, findOverriddenMethod, getAnnotation, getAnnotations, getDeclaredAnnotations, getDefaultValue, getErasedMethodDefinition, getGenericMethodDefinition, getGenericMethodParameters, getMemberType, getName, getTypeArguments, getTypeBindings, invoke, isAbstract, isAnnotationPresent, isDefault, isEquivalentTo, isGenericMethod, isGenericMethodDefinition, makeGenericMethod, makeGenericMethod, reflectedOn
Methods inherited from class com.strobel.reflection.MethodBase
getCallingConvention, 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 Details
-
INVOKE_EXACT
-
INVOKE
-
_parameters
-
_invokeMethod
-
_methodHandle
-
_signatureType
-
-
Constructor Details
-
DynamicMethod
-
DynamicMethod
-
-
Method Details
-
invoke
-
invokeExact
-
invoke
-
invokeExact
-
getHandle
-
getReturnType
- Specified by:
getReturnType
in classMethodInfo
-
getSignatureType
- Specified by:
getSignatureType
in classMethodBase
-
getRawMethod
- Specified by:
getRawMethod
in classMethodInfo
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
getParameters
- Overrides:
getParameters
in classMethodBase
-