rootPath(MemoryLayout)),
a path can be constructed by selecting layout elements using the selector methods provided by this class
(see sequenceElement(), sequenceElement(long), sequenceElement(long, long), groupElement(String)).
Once a path has been fully constructed, clients can ask for the offset associated with the layout element selected
by the path (see offset), or obtain var handle to access the selected layout element
given an address pointing to a segment associated with the root layout (see dereferenceHandle()).
| Modifier and Type | Class and Description |
|---|---|
| public static record | |
| public static record | |
| public static record | |
| public static record | |
| public static record | |
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private final long[] | |
| private final MethodHandle[] | |
| private static final long[] | |
| private static final MethodHandle[] | |
| public static final MemoryLayout. | |
| private static final long[] | |
| private final LayoutPath | |
| private final MemoryLayout | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private final long | |
| private final long[] |
| Access | Constructor and Description |
|---|---|
| private | LayoutPath(MemoryLayout layout, long offset, long[] strides, long[] bounds, MethodHandle[] derefAdapters, LayoutPath enclosing)
|
| Modifier and Type | Method and Description |
|---|---|
| private long[] | |
| private static long | |
| private long[] | |
| private static IllegalArgumentException | |
| private String | |
| private static void | |
| private void | |
| public LayoutPath | |
| public VarHandle | |
| public VarHandle | |
| private static LayoutPath | |
| public LayoutPath | |
| public LayoutPath | |
| public MemoryLayout | |
| private static LayoutPath | nestedPath(MemoryLayout layout, long offset, long[] strides, long[] bounds, MethodHandle[] derefAdapters, LayoutPath encl)
|
| public long | |
| public MethodHandle | |
| private GroupLayout | |
| private <T extends MemoryLayout> T | |
| private SequenceLayout | |
| private static MemorySegment | |
| private MemoryLayout | |
| public static LayoutPath | |
| public LayoutPath | |
| public LayoutPath | |
| public LayoutPath | |
| public MethodHandle |
| bounds | back to summary |
|---|---|
| private final long[] bounds | |
| derefAdapters | back to summary |
|---|---|
| private final MethodHandle[] derefAdapters | |
| EMPTY_BOUNDS | back to summary |
|---|---|
| private static final long[] EMPTY_BOUNDS | |
| EMPTY_DEREF_HANDLES | back to summary |
|---|---|
| private static final MethodHandle[] EMPTY_DEREF_HANDLES | |
| EMPTY_PATH_ELEMENTS | back to summary |
|---|---|
| public static final MemoryLayout. | |
| EMPTY_STRIDES | back to summary |
|---|---|
| private static final long[] EMPTY_STRIDES | |
| enclosing | back to summary |
|---|---|
| private final LayoutPath enclosing | |
| layout | back to summary |
|---|---|
| private final MemoryLayout layout | |
| MH_ADD_EXACT | back to summary |
|---|---|
| private static final MethodHandle MH_ADD_EXACT | |
| MH_ADD_SCALED_OFFSET | back to summary |
|---|---|
| private static final MethodHandle MH_ADD_SCALED_OFFSET | |
| MH_CHECK_ENCL_LAYOUT | back to summary |
|---|---|
| private static final MethodHandle MH_CHECK_ENCL_LAYOUT | |
| MH_SEGMENT_RESIZE | back to summary |
|---|---|
| private static final MethodHandle MH_SEGMENT_RESIZE | |
| MH_SLICE | back to summary |
|---|---|
| private static final MethodHandle MH_SLICE | |
| MH_SLICE_LAYOUT | back to summary |
|---|---|
| private static final MethodHandle MH_SLICE_LAYOUT | |
| offset | back to summary |
|---|---|
| private final long offset | |
| strides | back to summary |
|---|---|
| private final long[] strides | |
| LayoutPath | back to summary |
|---|---|
| private LayoutPath(MemoryLayout layout, long offset, long[] strides, long[] bounds, MethodHandle[] derefAdapters, LayoutPath enclosing) | |
| addBound | back to summary |
|---|---|
| private long[] addBound(long maxIndex) | |
| addScaledOffset | back to summary |
|---|---|
private static long addScaledOffset(long base, long index, long stride, long bound)
| |
| addStride | back to summary |
|---|---|
| private long[] addStride(long stride) | |
| badLayoutPath | back to summary |
|---|---|
| private static IllegalArgumentException badLayoutPath(String cause) | |
| breadcrumbs | back to summary |
|---|---|
| private String breadcrumbs() | |
| checkEnclosingLayout | back to summary |
|---|---|
| private static void checkEnclosingLayout(MemorySegment segment, long offset, MemoryLayout enclosing) | |
| checkSequenceBounds | back to summary |
|---|---|
| private void checkSequenceBounds(SequenceLayout seq, long index) | |
| derefElement | back to summary |
|---|---|
| public LayoutPath derefElement() | |
| dereferenceHandle | back to summary |
|---|---|
| public VarHandle dereferenceHandle() | |
| dereferenceHandle | back to summary |
|---|---|
| public VarHandle dereferenceHandle(boolean adapt) | |
| derefPath | back to summary |
|---|---|
| private static LayoutPath derefPath(MemoryLayout layout, MethodHandle handle, LayoutPath encl) | |
| groupElement | back to summary |
|---|---|
| public LayoutPath groupElement(String name) | |
| groupElement | back to summary |
|---|---|
| public LayoutPath groupElement(long index) | |
| layout | back to summary |
|---|---|
| public MemoryLayout layout() | |
| nestedPath | back to summary |
|---|---|
| private static LayoutPath nestedPath(MemoryLayout layout, long offset, long[] strides, long[] bounds, MethodHandle[] derefAdapters, LayoutPath encl) | |
| offset | back to summary |
|---|---|
| public long offset() | |
| offsetHandle | back to summary |
|---|---|
| public MethodHandle offsetHandle() | |
| requireGroupLayout | back to summary |
|---|---|
| private GroupLayout requireGroupLayout() | |
| requireLayoutType | back to summary |
|---|---|
| private <T extends MemoryLayout> T requireLayoutType(Class<T> layoutClass, String name) | |
| requireSequenceLayout | back to summary |
|---|---|
| private SequenceLayout requireSequenceLayout() | |
| resizeSegment | back to summary |
|---|---|
| private static MemorySegment resizeSegment(MemorySegment segment) | |
| rootLayout | back to summary |
|---|---|
| private MemoryLayout rootLayout() | |
| rootPath | back to summary |
|---|---|
| public static LayoutPath rootPath(MemoryLayout layout) | |
| sequenceElement | back to summary |
|---|---|
| public LayoutPath sequenceElement() | |
| sequenceElement | back to summary |
|---|---|
| public LayoutPath sequenceElement(long start, long step) | |
| sequenceElement | back to summary |
|---|---|
| public LayoutPath sequenceElement(long index) | |
| sliceHandle | back to summary |
|---|---|
| public MethodHandle sliceHandle() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final LayoutPath. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LayoutPath | apply(LayoutPath layoutPath)
Implements java. Applies this function to the given argument. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public static MemoryLayout. | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| INSTANCE | back to summary |
|---|---|
| private static final LayoutPath. | |
| DereferenceElement | back to summary |
|---|---|
| public DereferenceElement() | |
| apply | back to summary |
|---|---|
| public LayoutPath apply(LayoutPath layoutPath) Implements java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| instance | back to summary |
|---|---|
| public static MemoryLayout. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LayoutPath | apply(LayoutPath layoutPath)
Implements java. Applies this function to the given argument. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public long | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| index | back to summary |
|---|---|
| private final long index Record Component accessed by index(). | |
| GroupElementByIndex | back to summary |
|---|---|
| public GroupElementByIndex(long index) | |
| apply | back to summary |
|---|---|
| public LayoutPath apply(LayoutPath layoutPath) Implements java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| index | back to summary |
|---|---|
| public long index() Record Component getter of index. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LayoutPath | apply(LayoutPath layoutPath)
Implements java. Applies this function to the given argument. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). | |
| GroupElementByName | back to summary |
|---|---|
| public GroupElementByName(String name) | |
| apply | back to summary |
|---|---|
| public LayoutPath apply(LayoutPath layoutPath) Implements java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final LayoutPath. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LayoutPath | apply(LayoutPath layoutPath)
Implements java. Applies this function to the given argument. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public static MemoryLayout. | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| INSTANCE | back to summary |
|---|---|
| private static final LayoutPath. | |
| SequenceElement | back to summary |
|---|---|
| public SequenceElement() | |
| apply | back to summary |
|---|---|
| public LayoutPath apply(LayoutPath layoutPath) Implements java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| instance | back to summary |
|---|---|
| public static MemoryLayout. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LayoutPath | apply(LayoutPath layoutPath)
Implements java. Applies this function to the given argument. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public long | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| index | back to summary |
|---|---|
| private final long index Record Component accessed by index(). | |
| SequenceElementByIndex | back to summary |
|---|---|
| public SequenceElementByIndex(long index) | |
| apply | back to summary |
|---|---|
| public LayoutPath apply(LayoutPath layoutPath) Implements java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| index | back to summary |
|---|---|
| public long index() Record Component getter of index. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public LayoutPath | apply(LayoutPath layoutPath)
Implements java. Applies this function to the given argument. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public long | |
| public long | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| start | back to summary |
|---|---|
| private final long start Record Component accessed by start(). | |
| step | back to summary |
|---|---|
| private final long step Record Component accessed by step(). | |
| SequenceElementByRange | back to summary |
|---|---|
| public SequenceElementByRange(long start, long step) | |
| apply | back to summary |
|---|---|
| public LayoutPath apply(LayoutPath layoutPath) Implements java. Doc from java. Applies this function to the given argument.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| start | back to summary |
|---|---|
| public long start() Record Component getter of start. | |
| step | back to summary |
|---|---|
| public long step() Record Component getter of step. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |