Package net.bytebuddy.utility.privilege
Class GetMethodAction
- java.lang.Object
-
- net.bytebuddy.utility.privilege.GetMethodAction
-
- All Implemented Interfaces:
java.security.PrivilegedAction<java.lang.reflect.Method>
@Enhance public class GetMethodAction extends java.lang.Object implements java.security.PrivilegedAction<java.lang.reflect.Method>
Resolves a public method for a given type or returnsnull
if the type or method are not available or if a resolution is not possible.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
The name of the method.private static java.lang.Object[]
NO_ARGUMENT
An empty array to indicate that there are no arguments to a method invocation.private java.lang.Class<?>[]
parameter
The parameter types of the method.private java.lang.String
type
The name of the type.
-
Constructor Summary
Constructors Constructor Description GetMethodAction(java.lang.String type, java.lang.String name, java.lang.Class<?>... parameter)
Creates a new privileged action for resolving aMethod
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Method
run()
-
-
-
Field Detail
-
NO_ARGUMENT
private static final java.lang.Object[] NO_ARGUMENT
An empty array to indicate that there are no arguments to a method invocation.
-
type
private final java.lang.String type
The name of the type.
-
name
private final java.lang.String name
The name of the method.
-
parameter
private final java.lang.Class<?>[] parameter
The parameter types of the method.
-
-
Constructor Detail
-
GetMethodAction
public GetMethodAction(java.lang.String type, java.lang.String name, java.lang.Class<?>... parameter)
Creates a new privileged action for resolving aMethod
.- Parameters:
type
- The name of the type.name
- The name of the method.parameter
- The parameter types of the method.
-
-