APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.foreign.abi.riscv64.linux

public final Enum TypeClass

extends Enum<TypeClass>
Class Inheritance
Imports
java.lang.foreign.GroupLayout, .MemoryLayout, .MemorySegment, .PaddingLayout, .SequenceLayout, .UnionLayout, .ValueLayout, java.util.ArrayList, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record
public static record

Field Summary

Modifier and TypeField and Description
public static final TypeClass
public static final TypeClass
private static final int
public static final TypeClass
public static final TypeClass
public static final TypeClass
public static final TypeClass
public static final TypeClass

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TypeClass
private static TypeClass
private static TypeClass
public static List<TypeClass.FlattenedFieldDesc>
private static List<TypeClass.FlattenedFieldDesc>
private static boolean
public static TypeClass
public static TypeClass[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FLOATback to summary
public static final TypeClass FLOAT
INTEGERback to summary
public static final TypeClass INTEGER
MAX_AGGREGATE_REGS_SIZEback to summary
private static final int MAX_AGGREGATE_REGS_SIZE
POINTERback to summary
public static final TypeClass POINTER
STRUCT_REFERENCEback to summary
public static final TypeClass STRUCT_REFERENCE
STRUCT_REGISTER_Fback to summary
public static final TypeClass STRUCT_REGISTER_F
STRUCT_REGISTER_Xback to summary
public static final TypeClass STRUCT_REGISTER_X
STRUCT_REGISTER_XFback to summary
public static final TypeClass STRUCT_REGISTER_XF

Constructor Detail

TypeClassback to summary
private TypeClass()

Method Detail

classifyLayoutback to summary
public static TypeClass classifyLayout(MemoryLayout type)
classifyStructTypeback to summary
private static TypeClass classifyStructType(GroupLayout layout)
classifyValueTypeback to summary
private static TypeClass classifyValueType(ValueLayout type)
getFlattenedFieldsback to summary
public static List<TypeClass.FlattenedFieldDesc> getFlattenedFields(GroupLayout layout)
getFlattenedFieldsInnerback to summary
private static List<TypeClass.FlattenedFieldDesc> getFlattenedFieldsInner(long offset, MemoryLayout layout)
isRegisterAggregateback to summary
private static boolean isRegisterAggregate(MemoryLayout type)
valueOfback to summary
public static TypeClass valueOf(String name)
valuesback to summary
public static TypeClass[] values()
jdk.internal.foreign.abi.riscv64.linux back to summary

private final Record TypeClass.FieldCounter

extends Record
Class Inheritance
Record Components
integerCnt:long 
floatCnt:long 
pointerCnt:long 

Field Summary

Modifier and TypeField and Description
pack-priv static final TypeClass.FieldCounter
private final long
floatCnt

Record Component accessed by floatCnt().

private final long
integerCnt

Record Component accessed by integerCnt().

private final long
pointerCnt

Record Component accessed by pointerCnt().

pack-priv static final TypeClass.FieldCounter
pack-priv static final TypeClass.FieldCounter
pack-priv static final TypeClass.FieldCounter

Constructor Summary

AccessConstructor and Description
private
FieldCounter(long integerCnt, long floatCnt, long pointerCnt)

Method Summary

Modifier and TypeMethod and Description
pack-priv TypeClass.FieldCounter
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

pack-priv static TypeClass.FieldCounter
public long
floatCnt()

Record Component getter of floatCnt.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public long
integerCnt()

Record Component getter of integerCnt.

pack-priv TypeClass.FieldCounter
mul(long m)

public long
pointerCnt()

Record Component getter of pointerCnt.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

EMPTYback to summary
pack-priv static final TypeClass.FieldCounter EMPTY
floatCntback to summary
private final long floatCnt

Record Component accessed by floatCnt().

integerCntback to summary
private final long integerCnt

Record Component accessed by integerCnt().

pointerCntback to summary
private final long pointerCnt

Record Component accessed by pointerCnt().

SINGLE_FLOATback to summary
pack-priv static final TypeClass.FieldCounter SINGLE_FLOAT
SINGLE_INTEGERback to summary
pack-priv static final TypeClass.FieldCounter SINGLE_INTEGER
SINGLE_POINTERback to summary
pack-priv static final TypeClass.FieldCounter SINGLE_POINTER

Constructor Detail

FieldCounterback to summary
private FieldCounter(long integerCnt, long floatCnt, long pointerCnt)

Method Detail

addback to summary
pack-priv TypeClass.FieldCounter add(TypeClass.FieldCounter other)
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
flattenback to summary
pack-priv static TypeClass.FieldCounter flatten(MemoryLayout layout)
floatCntback to summary
public long floatCnt()

Record Component getter of floatCnt.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

integerCntback to summary
public long integerCnt()

Record Component getter of integerCnt.

mulback to summary
pack-priv TypeClass.FieldCounter mul(long m)
pointerCntback to summary
public long pointerCnt()

Record Component getter of pointerCnt.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.

jdk.internal.foreign.abi.riscv64.linux back to summary

public final Record TypeClass.FlattenedFieldDesc

extends Record
Class Inheritance
Record Components
typeClass:TypeClass 
offset:long 
layout:ValueLayout 

Field Summary

Modifier and TypeField and Description
private final ValueLayout
layout

Record Component accessed by layout().

private final long
offset

Record Component accessed by offset().

private final TypeClass
typeClass

Record Component accessed by typeClass().

Constructor Summary

AccessConstructor and Description
public
FlattenedFieldDesc(TypeClass typeClass, long offset, ValueLayout layout)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public ValueLayout
layout()

Record Component getter of layout.

public long
offset()

Record Component getter of offset.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public TypeClass
typeClass()

Record Component getter of typeClass.

Field Detail

layoutback to summary
private final ValueLayout layout

Record Component accessed by layout().

offsetback to summary
private final long offset

Record Component accessed by offset().

typeClassback to summary
private final TypeClass typeClass

Record Component accessed by typeClass().

Constructor Detail

FlattenedFieldDescback to summary
public FlattenedFieldDesc(TypeClass typeClass, long offset, ValueLayout layout)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

layoutback to summary
public ValueLayout layout()

Record Component getter of layout.

offsetback to summary
public long offset()

Record Component getter of offset.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.

typeClassback to summary
public TypeClass typeClass()

Record Component getter of typeClass.