PrivilegedExceptionAction
to lookup a method constant using an java.security.AccessController
.
Modifier and Type | Field and Description |
---|---|
private static final MethodDescription. | DEFAULT_CONSTRUCTOR
The default constructor of the |
private final Map | fields
A mapping of field names to their types in a fixed iteration order. |
public static final PrivilegedMemberLookupAction | FOR_DECLARED_CONSTRUCTOR
Looks up a method using |
public static final PrivilegedMemberLookupAction | FOR_DECLARED_METHOD
Looks up a method using |
public static final PrivilegedMemberLookupAction | FOR_PUBLIC_CONSTRUCTOR
Looks up a method using |
public static final PrivilegedMemberLookupAction | FOR_PUBLIC_METHOD
Looks up a method using |
private final MethodDescription. | methodDescription
The method to invoke from the action. |
private static final String | TYPE_FIELD
The name of the field that holds the type instance to look the method up from. |
Access | Constructor and Description |
---|---|
private | PrivilegedMemberLookupAction(String
The name of the method. name, String The name of a field to define. field, Class<?> The type of the field to define. type)Creates a privileged method constant action with one argument. |
private | PrivilegedMemberLookupAction(String
The name of the method. name, String The name of the first field to define. firstField, Class<?> The type of the first field to define. firstType, String The name of the second field to define. secondField, Class<?> The type of the second field to define. secondType)Creates a privileged method constant action with one argument. |
Modifier and Type | Method and Description |
---|---|
public String | getSuffix()
Implements net. |
public DynamicType | make(String
The fully qualified binary name for this auxiliary type. The type should be in
the same package than the instrumented type this auxiliary type is providing services
to in order to allow package-private access. auxiliaryTypeName, ClassFileVersion The class file version the auxiliary class should be written in. classFileVersion, MethodAccessorFactory A factory for accessor methods. methodAccessorFactory)Implements net. |
public static AuxiliaryType | Returns: An appropriate auxiliary type.The method description to represent as a constant. methodDescription)Returns an auxiliary type for loading the supplied method description as a constant. |
public static PrivilegedMemberLookupAction | |
public static PrivilegedMemberLookupAction[] |
DEFAULT_CONSTRUCTOR | back to summary |
---|---|
private static final MethodDescription. The default constructor of the |
fields | back to summary |
---|---|
private final Map<String, Class<?>> fields A mapping of field names to their types in a fixed iteration order. |
FOR_DECLARED_CONSTRUCTOR | back to summary |
---|---|
public static final PrivilegedMemberLookupAction FOR_DECLARED_CONSTRUCTOR Looks up a method using |
FOR_DECLARED_METHOD | back to summary |
---|---|
public static final PrivilegedMemberLookupAction FOR_DECLARED_METHOD Looks up a method using |
FOR_PUBLIC_CONSTRUCTOR | back to summary |
---|---|
public static final PrivilegedMemberLookupAction FOR_PUBLIC_CONSTRUCTOR Looks up a method using |
FOR_PUBLIC_METHOD | back to summary |
---|---|
public static final PrivilegedMemberLookupAction FOR_PUBLIC_METHOD Looks up a method using |
methodDescription | back to summary |
---|---|
private final MethodDescription. The method to invoke from the action. |
TYPE_FIELD | back to summary |
---|---|
private static final String TYPE_FIELD The name of the field that holds the type instance to look the method up from. |
PrivilegedMemberLookupAction | back to summary |
---|---|
private PrivilegedMemberLookupAction(String name, String field, Class<?> type) Creates a privileged method constant action with one argument. |
PrivilegedMemberLookupAction | back to summary |
---|---|
private PrivilegedMemberLookupAction(String name, String firstField, Class<?> firstType, String secondField, Class<?> secondType) Creates a privileged method constant action with one argument. |
getSuffix | back to summary |
---|---|
public String getSuffix() Implements net. Doc from net. Produces a suffix that gives this auxiliary type a stable name. A best effort is made that this suffix is unique.
|
make | back to summary |
---|---|
public DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory) Implements net. Doc from net. Creates a new auxiliary type.
|
of | back to summary |
---|---|
public static AuxiliaryType of(MethodDescription methodDescription) Returns an auxiliary type for loading the supplied method description as a constant.
|
valueOf | back to summary |
---|---|
public static PrivilegedMemberLookupAction valueOf(String name) |
values | back to summary |
---|---|
public static PrivilegedMemberLookupAction[] values() |