merge(Method) method. Only the most specific methods for a
particular signature are kept.
| Modifier and Type | Class and Description |
|---|---|
| private static class | PublicMethods.
Method (name, parameter types) tuple. |
| pack-priv static class | PublicMethods.
Node of a inked list containing Method(s) sharing the same (name, parameter types) tuple. |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | map
a map of (method name, parameter types) -> linked list of Method(s) |
| private int | methodCount
keeps track of the number of collected methods |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv Method[] |
| map | back to summary |
|---|---|
| private final Map<PublicMethods. a map of (method name, parameter types) -> linked list of Method(s) | |
| methodCount | back to summary |
|---|---|
| private int methodCount keeps track of the number of collected methods | |
| PublicMethods | back to summary |
|---|---|
| pack-priv PublicMethods() | |
| merge | back to summary |
|---|---|
| pack-priv void merge(Method method) Merges new method with existing methods. New method is either ignored (if a more specific method with same signature exists) or added to the collection. When it is added to the collection, it may replace one or more existing methods with same signature if they are less specific than added method. See comments in code... | |
| toArray | back to summary |
|---|---|
| pack-priv Method[] toArray() Dumps methods to array. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Class | |
| private static final ReflectionFactory |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| pack-priv static boolean |
| name | back to summary |
|---|---|
| private final String name | |
| ptypes | back to summary |
|---|---|
| private final Class<?>[] ptypes | |
| reflectionFactory | back to summary |
|---|---|
| private static final ReflectionFactory reflectionFactory | |
| Key | back to summary |
|---|---|
| pack-priv Key(Method method) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) 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.
| |
| 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
| |
| matches | back to summary |
|---|---|
| pack-priv static boolean matches(Method method, String name, Class<?>[] ptypes) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Method | |
| pack-priv PublicMethods. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static PublicMethods. | |
| pack-priv Method | |
| private int | |
| pack-priv static PublicMethods. | merge(PublicMethods.
This method should only be called with the |
| private static PublicMethods. |
| method | back to summary |
|---|---|
| pack-priv Method method | |
| next | back to summary |
|---|---|
| pack-priv PublicMethods. | |
| MethodList | back to summary |
|---|---|
| private MethodList(Method method) | |
| filter | back to summary |
|---|---|
pack-priv static PublicMethods.
| |
| getMostSpecific | back to summary |
|---|---|
pack-priv Method getMostSpecific()
| |
| length | back to summary |
|---|---|
| private int length() | |
| merge | back to summary |
|---|---|
| pack-priv static PublicMethods. This method should only be called with the | |
| merge | back to summary |
|---|---|
| private static PublicMethods. | |