Package io.microsphere.invoke
Enum MethodHandleUtils.LookupMode
- java.lang.Object
-
- java.lang.Enum<MethodHandleUtils.LookupMode>
-
- io.microsphere.invoke.MethodHandleUtils.LookupMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodHandleUtils.LookupMode>
- Enclosing class:
- MethodHandleUtils
public static enum MethodHandleUtils.LookupMode extends java.lang.Enum<MethodHandleUtils.LookupMode>
The allowedMethodHandles.Lookup
modes enumeration- See Also:
MethodHandles.Lookup.PUBLIC
,MethodHandles.Lookup.PRIVATE
,MethodHandles.Lookup.PROTECTED
,MethodHandles.Lookup.PACKAGE
,MethodHandles.Lookup#MODULE
,MethodHandles.Lookup#UNCONDITIONAL
,MethodHandles.Lookup#ORIGINAL
,MethodHandles.Lookup#TRUSTED
,MethodHandles.Lookup#ALL_MODES
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getModes(MethodHandleUtils.LookupMode... lookupModes)
int
getValue()
static MethodHandleUtils.LookupMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodHandleUtils.LookupMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final MethodHandleUtils.LookupMode PUBLIC
- See Also:
MethodHandleUtils.PUBLIC
-
PRIVATE
public static final MethodHandleUtils.LookupMode PRIVATE
- See Also:
MethodHandleUtils.PRIVATE
-
PROTECTED
public static final MethodHandleUtils.LookupMode PROTECTED
- See Also:
MethodHandleUtils.PROTECTED
-
PACKAGE
public static final MethodHandleUtils.LookupMode PACKAGE
- See Also:
MethodHandleUtils.PACKAGE
-
MODULE
public static final MethodHandleUtils.LookupMode MODULE
- See Also:
MethodHandleUtils.MODULE
-
UNCONDITIONAL
public static final MethodHandleUtils.LookupMode UNCONDITIONAL
- See Also:
MethodHandleUtils.UNCONDITIONAL
-
ORIGINAL
public static final MethodHandleUtils.LookupMode ORIGINAL
- See Also:
MethodHandleUtils.ORIGINAL
-
ALL
public static final MethodHandleUtils.LookupMode ALL
A single-bit mask representing all accesses (public, private, protected and package) The value, 0x0f
-
TRUSTED
public static final MethodHandleUtils.LookupMode TRUSTED
-1
-
-
Method Detail
-
values
public static MethodHandleUtils.LookupMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodHandleUtils.LookupMode c : MethodHandleUtils.LookupMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodHandleUtils.LookupMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
getModes
public static int getModes(MethodHandleUtils.LookupMode... lookupModes)
-
-