Deprecatedpublic final class Deprecated extends Attribute This class is derived from Attribute and denotes that this is a
deprecated method.
It is instantiated from the Attribute.readAttribute() method. |
Fields Summary |
---|
private byte[] | bytes |
Constructors Summary |
---|
public Deprecated(Deprecated c)Initialize from another object. Note that both objects use the same
references (shallow copy). Use clone() for a physical copy.
this(c.getNameIndex(), c.getLength(), c.getBytes(), c.getConstantPool());
| public Deprecated(int name_index, int length, byte[] bytes, ConstantPool constant_pool)
super(Constants.ATTR_DEPRECATED, name_index, length, constant_pool);
this.bytes = bytes;
| Deprecated(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("Deprecated attribute with length > 0");
}
|
|