Syntheticpublic final class Synthetic extends Attribute This class is derived from Attribute and declares this class
as `synthetic', i.e., it needs special handling.
It is instantiated from the Attribute.readAttribute() method. |
Fields Summary |
---|
private byte[] | bytes |
Constructors Summary |
---|
public Synthetic(Synthetic c)Initialize from another object. Note that both objects use the same
references (shallow copy). Use copy() for a physical copy.
this(c.getNameIndex(), c.getLength(), c.getBytes(), c.getConstantPool());
| public Synthetic(int name_index, int length, byte[] bytes, ConstantPool constant_pool)
super(Constants.ATTR_SYNTHETIC, name_index, length, constant_pool);
this.bytes = bytes;
| Synthetic(int name_index, int length, DataInputStream file, ConstantPool constant_pool)Construct object from file stream.
this(name_index, length, (byte [])null, constant_pool);
if(length > 0) {
bytes = new byte[length];
file.readFully(bytes);
System.err.println("Synthetic attribute with length > 0");
}
|
|