Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use RecordComponentInfo
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
java.lang.classfile.attribute.RecordAttribute
.
Modifier and Type | Method and Description |
---|---|
public Utf8Entry | Returns: the field descriptor of this componentReturns the field descriptor of this component. |
public default ClassDesc | Returns: the field descriptor of this component, as a ClassDescReturns the field descriptor of this component, as a ClassDesc. |
public Utf8Entry | |
public static RecordComponentInfo | |
public static RecordComponentInfo | |
public static RecordComponentInfo | |
public static RecordComponentInfo |
descriptor | back to summary |
---|---|
public Utf8Entry descriptor() Returns the field descriptor of this component.
|
descriptorSymbol | back to summary |
---|---|
public default ClassDesc descriptorSymbol() Returns the field descriptor of this component, as a ClassDesc. |
name | back to summary |
---|---|
public Utf8Entry name() Returns the name of this component.
|
of | back to summary |
---|---|
public static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, List<Attribute<?>> attributes) Returns a record component description.
|
of | back to summary |
---|---|
public static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, Attribute<?>... attributes) Returns a record component description.
|
of | back to summary |
---|---|
public static RecordComponentInfo of(String name, ClassDesc descriptor, List<Attribute<?>> attributes) Returns a record component description.
|
of | back to summary |
---|---|
public static RecordComponentInfo of(String name, ClassDesc descriptor, Attribute<?>... attributes) Returns a record component description.
|