java.lang.reflect.Method
value which can be created from a given
set of constant pool values and can therefore be considered a constant in the broader meaning.
Modifier and Type | Class and Description |
---|---|
protected static class | MethodConstant.CachedConstructor
Represents a cached constructor for a |
protected static class | MethodConstant.CachedMethod
Represents a cached method for a |
public static interface | MethodConstant.CanCache
Represents a |
protected static enum | MethodConstant.CanCacheIllegal
Represents a method constant that cannot be represented by Java's reflection API. |
protected static class | MethodConstant.ForConstructor
Creates a |
protected static class | MethodConstant.ForMethod
Creates a |
protected static class | MethodConstant.PrivilegedLookup
Performs a privileged lookup of a method constant by using an |
Modifier and Type | Field and Description |
---|---|
protected static final MethodDescription. | DO_PRIVILEGED
The |
protected final MethodDescription. | methodDescription
A description of the method to be loaded onto the stack. |
Access | Constructor and Description |
---|---|
protected | MethodConstant(MethodDescription.
The method description for which the methodDescriptionjava. representation
should be created.Creates a new method constant. |
Modifier and Type | Method and Description |
---|---|
protected abstract MethodDescription. | Returns: The method for loading a declared method or constructor onto the operand stack.Returns the method for loading a declared method or constructor onto the operand stack. |
public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements net. |
private static MethodDescription. | Returns: ThedoPrivileged method or null .Resolves the |
public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
public int | |
protected abstract StackManipulation | Returns: A stack manipulation that loads the method name onto the operand stack if this is required.Returns a stack manipulation that loads the method name onto the operand stack if this is required. |
public static MethodConstant. | Returns: A stack manipulation that assigns a method constant for the given method description.The method to be loaded onto the stack. methodDescriptionCreates a stack manipulation that loads a method constant onto the operand stack. |
public static MethodConstant. | Returns: A stack manipulation that assigns a method constant for the given method description.The method to be loaded onto the stack. methodDescriptionCreates a stack manipulation that loads a method constant onto the operand stack using an |
protected static List | Returns: A corresponding list of type constant load operations.A list of all type descriptions that should be represented as type constant
load operations. parameterTypes)Returns a list of type constant load operations for the given list of parameters. |
protected MethodConstant. | Returns: A method constant that uses anjava.security.AccessController to look up this constant.Returns a method constant that uses an |