| Modifier and Type | Field and Description |
|---|---|
| private final String | descriptor
The method descriptor. |
| private final String | name
The method name. |
| private static final Map | PRIMITIVE_TYPE_DESCRIPTORS
The descriptors of the primitive Java types (plus void). |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. other)Overrides java. |
| public Type[] | Returns: the argument types of the method described by this object.Returns the argument types of the method described by this object. |
| public String | Returns: the descriptor of the method described by this object.Returns the descriptor of the method described by this object. |
| private static String | Returns: the descriptor corresponding to the given type name.a Java type name. type, final boolean true if unqualified class names belong to the default package, or false
if they correspond to java.lang classes. For instance "Object" means "Object" if this
option is true, or "java.lang.Object" otherwise. defaultPackage)Returns the descriptor corresponding to the given type name. |
| public static Method | |
| public static Method | Returns: aMethod corresponding to the given Java constructor declaration.a java.lang.reflect constructor descriptor constructor)Creates a new |
| public static Method | Returns: aMethod corresponding to the given Java method declaration.a Java method declaration, without argument names, of the form "returnType name
(argumentType1, ... argumentTypeN)", where the types are in plain Java (e.g. "int",
"float", "java.util.List", ...). Classes of the java.lang package can be specified by their
unqualified name; all other classes names must be fully qualified. method)Returns a |
| public static Method | Returns: aMethod corresponding to the given Java method declaration.a Java method declaration, without argument names, of the form "returnType name
(argumentType1, ... argumentTypeN)", where the types are in plain Java (e.g. "int",
"float", "java.util.List", ...). Classes of the java.lang package may be specified by their
unqualified name, depending on the defaultPackage argument; all other classes names must be
fully qualified. method, final boolean true if unqualified class names belong to the default package, or false
if they correspond to java.lang classes. For instance "Object" means "Object" if this
option is true, or "java.lang.Object" otherwise. defaultPackage)Returns a |
| public String | Returns: the name of the method described by this object.Returns the name of the method described by this object. |
| public Type | Returns: the return type of the method described by this object.Returns the return type of the method described by this object. |
| public int | |
| public String |
| descriptor | back to summary |
|---|---|
| private final String descriptor The method descriptor. | |
| name | back to summary |
|---|---|
| private final String name The method name. | |
| PRIMITIVE_TYPE_DESCRIPTORS | back to summary |
|---|---|
| private static final Map<String, String> PRIMITIVE_TYPE_DESCRIPTORS The descriptors of the primitive Java types (plus void). | |
| Method | back to summary |
|---|---|
| public Method(final String name, final String descriptor) Constructs a new | |
| Method | back to summary |
|---|---|
| public Method(final String name, final Type returnType, final Type[] argumentTypes) Constructs a new | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getArgumentTypes | back to summary |
|---|---|
| public Type[] getArgumentTypes() Returns the argument types of the method described by this object.
| |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() Returns the descriptor of the method described by this object.
| |
| getDescriptorInternal | back to summary |
|---|---|
| private static String getDescriptorInternal(final String type, final boolean defaultPackage) Returns the descriptor corresponding to the given type name.
| |
| getMethod | back to summary |
|---|---|
| public static Method getMethod(final Method method) Creates a new | |
| getMethod | back to summary |
|---|---|
| public static Method getMethod(final Constructor<?> constructor) Creates a new
| |
| getMethod | back to summary |
|---|---|
| public static Method getMethod(final String method) Returns a
| |
| getMethod | back to summary |
|---|---|
| public static Method getMethod(final String method, final boolean defaultPackage) Returns a
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the method described by this object.
| |
| getReturnType | back to summary |
|---|---|
| public Type getReturnType() Returns the return type of the method described by this object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |