APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.classfile

public Class RecordComponentInfo

extends Object
implements Node
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.classfile.Node
Imports
java.io.DataInput, .DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.Const

Record component info from a record. Instances from this class maps every component from a given record.
Since
6.9.0
See Also
The Java Virtual Machine Specification, Java SE 14 Edition, Records (preview)

Field Summary

Modifier and TypeField and Description
private final Attribute[]
private final ConstantPool
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
RecordComponentInfo(final DataInput
Input stream
input
,
final ConstantPool
Array of constants
constantPool
)

Constructs a new instance from an input stream.

Method Summary

Modifier and TypeMethod and Description
public void
public void
dump(final DataOutputStream
Output file stream
file
)

Dumps contents into a file stream in binary format.

public Attribute[]

Returns:

all attributes.
getAttributes
()

Gets all attributes.

public ConstantPool

Returns:

Constant pool.
getConstantPool
()

Gets the constant pool.

public int

Returns:

index in constant pool of this record component descriptor.
getDescriptorIndex
()

Gets the description index.

public int

Returns:

index in constant pool of this record component name.
getIndex
()

Gets the name index.

public String

Returns:

a String suitable for debugging.
toString
()

Overrides java.lang.Object.toString.

Converts this instance to a String suitable for debugging.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributesback to summary
private final Attribute[] attributes
constantPoolback to summary
private final ConstantPool constantPool
descriptorIndexback to summary
private final int descriptorIndex
indexback to summary
private final int index

Constructor Detail

RecordComponentInfoback to summary
public RecordComponentInfo(final DataInput input, final ConstantPool constantPool) throws IOException

Constructs a new instance from an input stream.

Parameters
input:DataInput

Input stream

constantPool:ConstantPool

Array of constants

Exceptions
IOException:
if an I/O error occurs.

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements com.sun.org.apache.bcel.internal.classfile.Node.accept.

Annotations
@Override
dumpback to summary
public void dump(final DataOutputStream file) throws IOException

Dumps contents into a file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Exceptions
IOException:
if an I/O error occurs.
getAttributesback to summary
public Attribute[] getAttributes()

Gets all attributes.

Returns:Attribute[]

all attributes.

getConstantPoolback to summary
public ConstantPool getConstantPool()

Gets the constant pool.

Returns:ConstantPool

Constant pool.

getDescriptorIndexback to summary
public int getDescriptorIndex()

Gets the description index.

Returns:int

index in constant pool of this record component descriptor.

getIndexback to summary
public int getIndex()

Gets the name index.

Returns:int

index in constant pool of this record component name.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Converts this instance to a String suitable for debugging.

Returns:String

a String suitable for debugging.

Annotations
@Override