equal(Object) and hashCode() implementations.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | MethodDescription.
An abstract base implementation of a method description. |
| public static class | MethodDescription.
An implementation of a method description for a loaded constructor. |
| public static class | MethodDescription.
An implementation of a method description for a loaded method. |
| public static interface | MethodDescription.
Represents a method in its defined shape, i.e. in the form it is defined by a class without its type variables being resolved. |
| public static interface | MethodDescription.
Represents a method description in its generic shape, i.e. in the shape it is defined by a generic or raw type. |
| public static class | MethodDescription.
A latent method description describes a method that is not attached to a declaring
|
| public static class | MethodDescription.
A token representing a method's name and raw return and parameter types. |
| public static class | MethodDescription.
A token representing a method's properties detached from a type. |
| public static class | MethodDescription.
A method description that represents a given method but with substituted method types. |
| public static class | MethodDescription.
A token representing a method's erased return and parameter types. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CONSTRUCTOR_INTERNAL_NAME
The internal name of a Java constructor. |
| public static final String | TYPE_INITIALIZER_INTERNAL_NAME
The internal name of a Java static initializer. |
| public static final int | TYPE_INITIALIZER_MODIFIER
The type initializer of any representation of a type initializer. |
| public static final MethodDescription. | UNDEFINED
Hides org. null in order
to resemble the Java reflection API which returns null and is intuitive to many Java developers.
|
| Modifier and Type | Method and Description |
|---|---|
| public MethodDescription. | Returns: A signature token representing this method.Returns a signature token representing this method. |
| public MethodDescription. | Returns: A type token that represents this method's raw return and parameter types.Returns a type token that represents this method's raw return and parameter types. |
| public int | Returns: The method's actual modifiers.Returns this method's actual modifiers as it is present in a class file, i.e. includes a flag if this method
is marked |
| public int | Returns: The method's actual modifiers.true if the method should be treated as non-abstract.Returns this method's actual modifiers as it is present in a class file, i.e. includes a flag if this method
is marked |
| public int | Returns: The method's actual modifiers.true if the method should be treated as non-abstract.The minimal visibility to enforce for this method. visibility)Returns this method's actual modifiers as it is present in a class file, i.e. includes a flag if this method
is marked |
| public AnnotationValue | Returns: The method's default annotation value ornull if no default value is defined for this method.Returns the method's default annotation value or |
| public < The type to cast the default value to. T> T | Returns: The casted default value.The type to cast the default value to. type)Returns the default value but casts it to the given type. |
| public TypeList. | Returns: The exception types of the described method.Returns the exception types of the described method. |
| public ParameterList | Returns: A list of this method's parameters.Returns a list of this method's parameters. |
| public TypeDescription. | Returns: This method's (annotated) receiver type.Returns this methods receiver type. |
| public TypeDescription. | Returns: The return type of the described method.Returns the return type of the described method. |
| public int | Returns: The size of this method on the operand stack.Returns the size of the local variable array that is required for this method, i.e. the size of all parameters
if they were loaded on the stack including a reference to |
| public boolean | Returns: true if the supplied type token can represent a bridge method to this method.A type token representing a potential bridge method to this method. typeTokenValidates that the supplied type token can implement a bridge method to this method. |
| public boolean | Returns: true if this method is a valid bootstrap method for an constantdynamic call.Checks if this method is a valid bootstrap method for an constantdynamic call. |
| public boolean | Returns: true if this method is a valid bootstrap method for an constantdynamic call.The types of the explicit arguments that are supplied to the bootstrap method. arguments)Checks if this method is a valid bootstrap method for a constantdynamic call. |
| public boolean | Returns: true if this method description represents a constructor.Checks if this method description represents a constructor. |
| public boolean | Returns: true if this method is a default method.Checks if this method represents a default (defender) method. |
| public boolean | Returns: true if it is possible to define a default annotation value for this method.Checks if this method is capable of defining a default annotation value. |
| public boolean | Returns: true if the given value can describe a default annotation value for this method.The value that describes the default annotation value for this method. annotationValue)Checks if the given value can describe a default annotation value for this method. |
| public boolean | Returns: true if this method is invokable on an instance of the given type.The type to check. typeDescription)Asserts if this method is invokable on an instance of the given type, i.e. the method is an instance method or a constructor and the method is visible to the type and can be invoked on the given instance. |
| public boolean | Returns: true if this method is a valid bootstrap method for an invokedynamic call.Checks if this method is a valid bootstrap method for an invokedynamic call. |
| public boolean | Returns: true if this method is a valid bootstrap method for an invokedynamic call.The types of the explicit arguments that are supplied to the bootstrap method. arguments)Checks if this method is a valid bootstrap method for an invokedynamic call. |
| public boolean | Returns: true if this method description represents a Java method.Checks if this method description represents a method, i.e. not a constructor or a type initializer. |
| public boolean | Returns: true if this method can be called using the INVOKESPECIAL instruction
using the given type.The type o typeDescription)Checks if this method can be called using the |
| public boolean | Returns: true if this method description represents a type initializer.Checks if this method is a type initializer. |
| public boolean | Returns: true if this method is virtual.Verifies if this method describes a virtual method, i.e. a method that is inherited by a sub type of this type. |
| public boolean | Returns: true if this method description represents the given loaded method.The method to be checked. method)Verifies if a method description represents a given loaded method. |
| public boolean | Returns: true if this method description represents the given loaded constructor.The constructor to be checked. constructor)Verifies if a method description represents a given loaded constructor. |