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.
-
-
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()
-
-
-
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.
-
-
Method Detail
-
run
@MaybeNull public java.lang.reflect.Method run()
- Specified by:
run
in interfacejava.security.PrivilegedAction<java.lang.reflect.Method>
-
-