Class objects, useful for representing method signatures. Provides value
semantics for using them as map keys, as well as specificity calculations and applicability checks as per
JLS.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private int | |
| pack-priv static final Class | NULL_CLASS
An anonymous inner class used solely to represent the "type" of null values for method applicability checking. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public boolean | equals(final Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv LinkedList | getApplicables(final List<MethodHandle> methods, final LinkerServices linkerServices, final boolean varArg)
Returns all methods that are applicable to actual parameter classes represented by this ClassString object. |
| pack-priv List | getMaximallySpecifics(final List<MethodHandle> methods, final LinkerServices linkerServices, final boolean varArg)
|
| public int | |
| private boolean | isApplicable(final MethodHandle method, final LinkerServices linkerServices, final boolean varArg)
Returns true if the supplied method is applicable to actual parameter classes represented by this ClassString object. |
| pack-priv boolean | |
| public String |
| classes | back to summary |
|---|---|
| private final Class<?>[] classes | |
| hashCode | back to summary |
|---|---|
| private int hashCode | |
| NULL_CLASS | back to summary |
|---|---|
| pack-priv static final Class<?> NULL_CLASS An anonymous inner class used solely to represent the "type" of null values for method applicability checking. | |
| ClassString | back to summary |
|---|---|
| pack-priv ClassString(final Class<?>[] classes) | |
| canConvert | back to summary |
|---|---|
| private static boolean canConvert(final LinkerServices ls, final Class<?> from, final Class<?> to) | |
| 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.
| |
| getApplicables | back to summary |
|---|---|
| pack-priv LinkedList Returns all methods that are applicable to actual parameter classes represented by this ClassString object. | |
| getMaximallySpecifics | back to summary |
|---|---|
| pack-priv List | |
| 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
| |
| isApplicable | back to summary |
|---|---|
| private boolean isApplicable(final MethodHandle method, final LinkerServices linkerServices, final boolean varArg) Returns true if the supplied method is applicable to actual parameter classes represented by this ClassString object. | |
| isVisibleFrom | back to summary |
|---|---|
| pack-priv boolean isVisibleFrom(final ClassLoader classLoader) | |
| 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-
| |