constant_pool, EMPTY_ARRAY, length, name_index, tag| Constructor and Description |
|---|
Record(int nameIndex,
int length,
RecordComponentInfo[] classes,
ConstantPool constantPool)
Constructs a new instance using components.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool constantPool)
Copies this instance and its components.
|
void |
dump(DataOutputStream file)
Dumps this instance into a file stream in binary format.
|
RecordComponentInfo[] |
getComponents()
Gets all the record components.
|
String |
toString()
Converts this instance to a String suitable for debugging.
|
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexpublic Record(int nameIndex,
int length,
RecordComponentInfo[] classes,
ConstantPool constantPool)
nameIndex - Index in constant poollength - Content length in bytesclasses - Array of Record Component Info elementsconstantPool - Array of constantspublic void accept(Visitor v)
public Attribute copy(ConstantPool constantPool)
public void dump(DataOutputStream file) throws IOException
dump in class Attributefile - output stream.IOException - if an I/O error occurs.public RecordComponentInfo[] getComponents()
Copyright © 2004–2025 The Apache Software Foundation. All rights reserved.