| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | AccessibleMembersLookup.
A helper class that represents a method signature - name and argument types. |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final boolean | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | AccessibleMembersLookup(final Class<?>
the inspected class clazz, final boolean true to inspect instance methods, false to inspect static methods. instance)Creates a mapping for all accessible methods and inner classes on a class. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Method | |
| pack-priv Class | |
| pack-priv Collection | |
| private void |
| innerClasses | back to summary |
|---|---|
| private final Map<String, Class<?>> innerClasses | |
| instance | back to summary |
|---|---|
| private final boolean instance | |
| methods | back to summary |
|---|---|
| private final Map<AccessibleMembersLookup. | |
| AccessibleMembersLookup | back to summary |
|---|---|
| pack-priv AccessibleMembersLookup(final Class<?> clazz, final boolean instance) Creates a mapping for all accessible methods and inner classes on a class.
| |
| getAccessibleMethod | back to summary |
|---|---|
| pack-priv Method getAccessibleMethod(final Method m) | |
| getInnerClasses | back to summary |
|---|---|
| pack-priv Class | |
| getMethods | back to summary |
|---|---|
| pack-priv Collection | |
| lookupAccessibleMembers | back to summary |
|---|---|
| private void lookupAccessibleMembers(final Class<?> clazz) | |
| Access | Constructor and Description |
|---|---|
| pack-priv | MethodSignature(final String
the name of the method this signature represents. name, final Class<?>[] the argument types of the method. args)Creates a new method signature from arbitrary data. |
| pack-priv | MethodSignature(final Method
the method for which a signature is created. method)Creates a signature for the given method. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the other object is also a method signature with the same name, same number of arguments, and same types of arguments.the other object o)Overrides java. Compares this object to another object |
| public int | hashCode()
Overrides java. Returns a hash code, consistent with the overridden |
| public String |
| args | back to summary |
|---|---|
| private final Class<?>[] args | |
| name | back to summary |
|---|---|
| private final String name | |
| MethodSignature | back to summary |
|---|---|
| pack-priv MethodSignature(final String name, final Class<?>[] args) Creates a new method signature from arbitrary data. | |
| MethodSignature | back to summary |
|---|---|
| pack-priv MethodSignature(final Method method) Creates a signature for the given method.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Compares this object to another object | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code, consistent with the overridden
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |