| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final int | size
The size of this constant group, set permanently by the constructor. |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractConstantGroup(int
the size of this constant group, set permanently by the constructor size)The constructor requires the size of the constant group being represented. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | get(int index)
Redeclares java. Returns the selected constant, resolving it if necessary. |
| public abstract Object | get(int index, Object ifNotPresent)
Redeclares java. Returns the selected constant, or the given sentinel value if there is none available. |
| public abstract boolean | isPresent(int index)
Redeclares java. Returns an indication of whether a constant may be available. |
| public final int | size()
Implements java. Returns the number of constants in this group. |
| public String | Returns: this.asList("*").toString()Overrides java. Produce a string using the non-resolving list view, where unresolved elements are presented as asterisks. |
| size | back to summary |
|---|---|
| protected final int size The size of this constant group, set permanently by the constructor. | |
| AbstractConstantGroup | back to summary |
|---|---|
| pack-priv AbstractConstantGroup(int size) The constructor requires the size of the constant group being represented.
| |
| get | back to summary |
|---|---|
| public abstract Object get(int index) throws LinkageError Redeclares java. Doc from java. Returns the selected constant, resolving it if necessary. Throws a linkage error if resolution proves impossible.
| |
| get | back to summary |
|---|---|
| public abstract Object get(int index, Object ifNotPresent) Redeclares java. Doc from java. Returns the selected constant,
or the given sentinel value if there is none available.
If the constant cannot be resolved, the sentinel will be returned.
If the constant can (perhaps) be resolved, but has not yet been resolved,
then the sentinel may be returned, at the implementation's discretion.
To force resolution (and a possible exception), call | |
| isPresent | back to summary |
|---|---|
| public abstract boolean isPresent(int index) Redeclares java. Doc from java. Returns an indication of whether a constant may be available.
If it returns
After a normal return from
If this method returns | |
| size | back to summary |
|---|---|
| public final int size() Implements java. Doc from java. Returns the number of constants in this group. This value never changes, for any particular group.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Produce a string using the non-resolving list view, where unresolved elements are presented as asterisks. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Object | |
| private int | |
| private final boolean | |
| private final ConstantGroup |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public boolean | |
| public Object |
| end | back to summary |
|---|---|
| private final int end | |
| ifNotPresent | back to summary |
|---|---|
| private final Object ifNotPresent | |
| index | back to summary |
|---|---|
| private int index | |
| resolving | back to summary |
|---|---|
| private final boolean resolving | |
| self | back to summary |
|---|---|
| private final ConstantGroup self | |
| AsIterator | back to summary |
|---|---|
| private AsIterator(ConstantGroup self, int start, int end, boolean resolving, Object ifNotPresent) | |
| AsIterator | back to summary |
|---|---|
| pack-priv AsIterator(ConstantGroup self, int start, int end) | |
| AsIterator | back to summary |
|---|---|
| pack-priv AsIterator(ConstantGroup self, int start, int end, Object ifNotPresent) | |
| bumpIndex | back to summary |
|---|---|
| private int bumpIndex() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final int | |
| private final boolean | |
| private final ConstantGroup | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | get(int index)
Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public Iterator | iterator()
Overrides java. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| private int | |
| public final int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| public List | subList(int start, int end)
Overrides java. Implements java. Returns a view of the portion of this list between the specified
|
| public Object[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public <T> T[] | toArray(T[] a)
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
| ifNotPresent | back to summary |
|---|---|
| private final Object ifNotPresent | |
| offset | back to summary |
|---|---|
| private final int offset | |
| resolving | back to summary |
|---|---|
| private final boolean resolving | |
| self | back to summary |
|---|---|
| private final ConstantGroup self | |
| size | back to summary |
|---|---|
| private final int size | |
| AsList | back to summary |
|---|---|
| private AsList(ConstantGroup self, int start, int end, boolean resolving, Object ifNotPresent) | |
| AsList | back to summary |
|---|---|
| pack-priv AsList(ConstantGroup self, int start, int end) | |
| AsList | back to summary |
|---|---|
| pack-priv AsList(ConstantGroup self, int start, int end, Object ifNotPresent) | |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence.
| |
| mapIndex | back to summary |
|---|---|
| private int mapIndex(int index) | |
| size | back to summary |
|---|---|
| public final int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| subList | back to summary |
|---|---|
| public List Overrides java. Implements java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] a) Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list. If the list fits in the specified array with room to spare (i.e.,
the array has more elements than the list), the element in the array
immediately following the end of the list is set to Like the Suppose
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodHandle | |
| private final String | |
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public MethodHandle | bootstrapMethod()
Implements java. Returns the bootstrap method for this call. |
| public String | invocationName()
Implements java. Returns the method name or constant name for this call. |
| public T | invocationType()
Implements java. Returns the method type or constant type for this call. |
| public String | toString()
Overrides java. Produce a string using the non-resolving list view, where unresolved elements are presented as asterisks. |
| bsm | back to summary |
|---|---|
| private final MethodHandle bsm | |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final T type | |
| BSCIWithCache | back to summary |
|---|---|
| pack-priv BSCIWithCache(MethodHandle bsm, String name, T type, int size) | |
| bootstrapMethod | back to summary |
|---|---|
| public MethodHandle bootstrapMethod() Implements java. Doc from java. Returns the bootstrap method for this call.
| |
| invocationName | back to summary |
|---|---|
| public String invocationName() Implements java. Doc from java. Returns the method name or constant name for this call.
| |
| invocationType | back to summary |
|---|---|
| public T invocationType() Implements java. Doc from java. Returns the method type or constant type for this call.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Produce a string using the non-resolving list view, where unresolved elements are presented as asterisks.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final ConstantGroup |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public List | asList()
Overrides default java. Create a view on this group as a |
| public List | asList(Object ifNotPresent)
Overrides default java. Create a view on this group as a |
| public int | copyConstants(int start, int end, Object[] buf, int pos)
Overrides default java. Copy a sequence of constant values into a given buffer. |
| public int | copyConstants(int start, int end, Object[] buf, int pos, Object ifNotPresent)
Overrides default java. Copy a sequence of constant values into a given buffer. |
| public Object | get(int index)
Implements abstract java. Implements java. Returns the selected constant, resolving it if necessary. |
| public Object | get(int index, Object ifNotPresent)
Implements abstract java. Implements java. Returns the selected constant, or the given sentinel value if there is none available. |
| public boolean | isPresent(int index)
Implements abstract java. Implements java. Returns an indication of whether a constant may be available. |
| private int | |
| public ConstantGroup | subGroup(int start, int end)
Overrides default java. Create a view on a sub-sequence of this group. |
| offset | back to summary |
|---|---|
| private final int offset | |
| self | back to summary |
|---|---|
| private final ConstantGroup self | |
| SubGroup | back to summary |
|---|---|
| pack-priv SubGroup(ConstantGroup self, int start, int end) | |
| asList | back to summary |
|---|---|
| public List Overrides default java. Doc from java. Create a view on this group as a
| |
| asList | back to summary |
|---|---|
| public List Overrides default java. Doc from java. Create a view on this group as a
| |
| copyConstants | back to summary |
|---|---|
| public int copyConstants(int start, int end, Object[] buf, int pos) throws LinkageError Overrides default java. Doc from java. Copy a sequence of constant values into a given buffer.
This is equivalent to
| |
| copyConstants | back to summary |
|---|---|
| public int copyConstants(int start, int end, Object[] buf, int pos, Object ifNotPresent) Overrides default java. Doc from java. Copy a sequence of constant values into a given buffer.
This is equivalent to
| |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Doc from java. Returns the selected constant, resolving it if necessary. Throws a linkage error if resolution proves impossible.
| |
| get | back to summary |
|---|---|
| public Object get(int index, Object ifNotPresent) Implements abstract java. Implements java. Doc from java. Returns the selected constant,
or the given sentinel value if there is none available.
If the constant cannot be resolved, the sentinel will be returned.
If the constant can (perhaps) be resolved, but has not yet been resolved,
then the sentinel may be returned, at the implementation's discretion.
To force resolution (and a possible exception), call
| |
| isPresent | back to summary |
|---|---|
| public boolean isPresent(int index) Implements abstract java. Implements java. Doc from java. Returns an indication of whether a constant may be available.
If it returns
After a normal return from
If this method returns
| |
| mapIndex | back to summary |
|---|---|
| private int mapIndex(int index) | |
| subGroup | back to summary |
|---|---|
| public ConstantGroup subGroup(int start, int end) Overrides default java. Doc from java. Create a view on a sub-sequence of this group.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object[] | |
| pack-priv static final Object | |
| pack-priv static final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | |
| public Object | get(int i)
Implements abstract java. Implements java. Returns the selected constant, resolving it if necessary. |
| public Object | get(int i, Object ifNotAvailable)
Implements abstract java. Implements java. Returns the selected constant, or the given sentinel value if there is none available. |
| pack-priv void | |
| public boolean | isPresent(int i)
Implements abstract java. Implements java. Returns an indication of whether a constant may be available. |
| pack-priv static Object | |
| pack-priv static Object |
| cache | back to summary |
|---|---|
| pack-priv final Object[] cache
| |
| NOT_PRESENT | back to summary |
|---|---|
| pack-priv static final Object NOT_PRESENT | |
| RESOLVED_TO_NULL | back to summary |
|---|---|
| pack-priv static final Object RESOLVED_TO_NULL | |
| WithCache | back to summary |
|---|---|
| pack-priv WithCache(int size) | |
| fillCache | back to summary |
|---|---|
| pack-priv Object fillCache(int i) hook for local subclasses | |
| get | back to summary |
|---|---|
| public Object get(int i) Implements abstract java. Implements java. Doc from java. Returns the selected constant, resolving it if necessary. Throws a linkage error if resolution proves impossible.
| |
| get | back to summary |
|---|---|
| public Object get(int i, Object ifNotAvailable) Implements abstract java. Implements java. Doc from java. Returns the selected constant,
or the given sentinel value if there is none available.
If the constant cannot be resolved, the sentinel will be returned.
If the constant can (perhaps) be resolved, but has not yet been resolved,
then the sentinel may be returned, at the implementation's discretion.
To force resolution (and a possible exception), call
| |
| initializeCache | back to summary |
|---|---|
| pack-priv void initializeCache(List<Object> cacheContents, Object ifNotPresent) | |
| isPresent | back to summary |
|---|---|
| public boolean isPresent(int i) Implements abstract java. Implements java. Doc from java. Returns an indication of whether a constant may be available.
If it returns
After a normal return from
If this method returns
| |
| unwrapNull | back to summary |
|---|---|
| pack-priv static Object unwrapNull(Object x) | |
| wrapNull | back to summary |
|---|---|
| pack-priv static Object wrapNull(Object x) | |