Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class Deprecated

extends Attribute
Class Inheritance
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants

This class is derived from Attribute and denotes that this is a deprecated method. It is instantiated from the Attribute.readAttribute() method.
Author
M. Dahm
Version
$Id: Deprecated.java,v 1.5 2009/09/15 19:40:12 aclement Exp $
See Also
Attribute

Field Summary

Modifier and TypeField and Description
private byte[]
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
cpoollengthnameIndexNoAttributestag

Constructor Summary

AccessConstructor and Description
public
Deprecated(Deprecated c)

Initialize from another object.

public
Deprecated(int
Index in constant pool to CONSTANT_Utf8
name_index
,
int
Content length in bytes
length
,
byte[]
Attribute contents
bytes
,
ConstantPool
Array of constants
constant_pool
)

pack-priv
Deprecated(int
Index in constant pool to CONSTANT_Utf8
name_index
,
int
Content length in bytes
length
,
DataInputStream
Input stream
file
,
ConstantPool
Array of constants
constant_pool
)

Construct object from file stream.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ClassVisitor
Visitor object
v
)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.
public final void
dump(DataOutputStream
Output file stream
file
)

Overrides org.aspectj.apache.bcel.classfile.Attribute.dump.

Dump source file attribute to file stream in binary format.
public final byte[]

Returns:

data bytes.
getBytes
()

public final void
setBytes(byte[] bytes)

public final String

Returns:

attribute name
toString
()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Returns a string representation of the object.
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
getConstantPoolgetLengthgetNamegetNameIndexgetTagreadAttribute

Field Detail

bytesback to summary
private byte[] bytes

Constructor Detail

Deprecatedback to 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.

Deprecatedback to summary
public Deprecated(int name_index, int length, byte[] bytes, ConstantPool constant_pool)
Parameters
name_index:int

Index in constant pool to CONSTANT_Utf8

length:int

Content length in bytes

bytes:byte[]

Attribute contents

constant_pool:ConstantPool

Array of constants

Deprecatedback to summary
pack-priv Deprecated(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException

Construct object from file stream.

Parameters
name_index:int

Index in constant pool to CONSTANT_Utf8

length:int

Content length in bytes

file:DataInputStream

Input stream

constant_pool:ConstantPool

Array of constants

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters
v:ClassVisitor

Visitor object

Annotations
@Override
dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Overrides org.aspectj.apache.bcel.classfile.Attribute.dump.

Dump source file attribute to file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Annotations
@Override
getBytesback to summary
public final byte[] getBytes()
Returns:byte[]

data bytes.

setBytesback to summary
public final void setBytes(byte[] bytes)
toStringback to summary
public final String toString()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

attribute name

Annotations
@Override