Top Description Fields Constructors Methods
net.bytebuddy.utility.privilege

public Class GetMethodAction

extends Object
implements PrivilegedAction<Method>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Annotations
@Enhance
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.utility.nullability.MaybeNull, java.lang.reflect.Method, java.security.PrivilegedAction

Resolves a public method for a given type or returns null if the type or method are not available or if a resolution is not possible.

Field Summary

Modifier and TypeField and Description
private final String
name

The name of the method.

private final Class<?>[]
parameter

The parameter types of the method.

private final String
type

The name of the type.

Constructor Summary

AccessConstructor and Description
public
GetMethodAction(String
The name of the type.
type
,
String
The name of the method.
name
,
Class<?>...
The parameter types of the method.
parameter
)

Creates a new privileged action for resolving a Method.

Method Summary

Modifier and TypeMethod and Description
public Method
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name

The name of the method.

parameterback to summary
private final Class<?>[] parameter

The parameter types of the method.

typeback to summary
private final String type

The name of the type.

Constructor Detail

GetMethodActionback to summary
public GetMethodAction(String type, String name, Class<?>... parameter)

Creates a new privileged action for resolving a Method.

Parameters
type:String

The name of the type.

name:String

The name of the method.

parameter:Class<?>[]

The parameter types of the method.

Method Detail

runback to summary
public Method run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Method

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@MaybeNull
@SuppressFBWarnings:REC_CATCH_EXCEPTION
justification:Exception should not be rethrown but trigger a fallback.