Class Record
java.lang.Object
org.apache.bcel.classfile.Attribute
org.apache.bcel.classfile.Record
-
Field Summary
Fields inherited from class Attribute
constant_pool, EMPTY_ARRAY, length, name_index, tag -
Constructor Summary
ConstructorsConstructorDescriptionRecord(int nameIndex, int length, RecordComponentInfo[] classes, ConstantPool constantPool) Constructs a new instance using components. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.copy(ConstantPool constantPool) Copies this instance and its components.voiddump(DataOutputStream file) Dumps this instance into a file stream in binary format.Gets all the record components.toString()Converts this instance to a String suitable for debugging.Methods inherited from class Attribute
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
-
Constructor Details
-
Record
Constructs a new instance using components.- Parameters:
nameIndex- Index in constant poollength- Content length in bytesclasses- Array of Record Component Info elementsconstantPool- Array of constants
-
-
Method Details
-
accept
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. For example, the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. -
copy
Copies this instance and its components. -
dump
Dumps this instance into a file stream in binary format.- Overrides:
dumpin classAttribute- Parameters:
file- output stream.- Throws:
IOException- if an I/O error occurs.
-
getComponents
Gets all the record components.- Returns:
- array of Record Component Info elements.
-
toString
-