Attribute and records the classes and
interfaces that are authorized to claim membership in the nest hosted by the
current class or interface. There may be at most one Record attribute in a
ClassFile structure.
Attribute
| Modifier and Type | Field and Description |
|---|---|
| private RecordComponentInfo[] | |
| private static final RecordComponentInfo[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | Record(final int
Index in constant pool nameIndex, final int Content length in bytes length, final DataInput Input stream input, final ConstantPool Array of constants constantPool)Constructs object from input stream. |
| public | Record(final int
Index in constant pool nameIndex, final int Content length in bytes length, final RecordComponentInfo[] Array of Record Component Info elements classes, final ConstantPool Array of constants constantPool)Constructs a new instance using components. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements abstract com. Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. |
| public Attribute | Returns: a deep copy of this instance and its components.Implements abstract com. Copies this instance and its components. |
| public void | dump(final DataOutputStream
output stream. file)Overrides com. Dumps this instance into a file stream in binary format. |
| public RecordComponentInfo[] | |
| private static RecordComponentInfo[] | |
| public String | Returns: String a String suitable for debugging.Overrides com. Converts this instance to a String suitable for debugging. |
| components | back to summary |
|---|---|
| private RecordComponentInfo[] components | |
| EMPTY_RCI_ARRAY | back to summary |
|---|---|
| private static final RecordComponentInfo[] EMPTY_RCI_ARRAY | |
| Record | back to summary |
|---|---|
| pack-priv Record(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException Constructs object from input stream.
| |
| Record | back to summary |
|---|---|
| public Record(final int nameIndex, final int length, final RecordComponentInfo[] classes, final ConstantPool constantPool) Constructs a new instance using components.
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements abstract com. Implements com. 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 | back to summary |
|---|---|
| public Attribute copy(final ConstantPool constantPool) Implements abstract com. Copies this instance and its components. | |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream file) throws IOException Overrides com. Dumps this instance into a file stream in binary format.
| |
| getComponents | back to summary |
|---|---|
| public RecordComponentInfo[] getComponents() Gets all the record components.
| |
| readComponents | back to summary |
|---|---|
| private static RecordComponentInfo[] readComponents(final DataInput input, final ConstantPool constantPool) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Converts this instance to a String suitable for debugging. | |