Package org.apache.bcel.classfile
Class RecordComponentInfo
java.lang.Object
org.apache.bcel.classfile.RecordComponentInfo
- All Implemented Interfaces:
Node
Record component info from a record. Instances from this class maps
every component from a given record.
- Since:
- 6.9.0
- See Also:
-
Constructor Summary
ConstructorDescriptionRecordComponentInfo
(DataInput input, ConstantPool constantPool) Constructs a new instance from an input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dump
(DataOutputStream file) Dumps contents into a file stream in binary format.Gets all attributes.Gets the constant pool.int
Gets the description index.int
getIndex()
Gets the name index.toString()
Converts this instance to a String suitable for debugging.
-
Constructor Details
-
RecordComponentInfo
Constructs a new instance from an input stream.- Parameters:
input
- Input streamconstantPool
- Array of constants- Throws:
IOException
- if an I/O error occurs.
-
-
Method Details
-
accept
-
dump
Dumps contents into a file stream in binary format.- Parameters:
file
- Output file stream- Throws:
IOException
- if an I/O error occurs.
-
getAttributes
Gets all attributes.- Returns:
- all attributes.
-
getConstantPool
Gets the constant pool.- Returns:
- Constant pool.
-
getDescriptorIndex
Gets the description index.- Returns:
- index in constant pool of this record component descriptor.
-
getIndex
Gets the name index.- Returns:
- index in constant pool of this record component name.
-
toString
Converts this instance to a String suitable for debugging.
-