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

public final Class InnerClasses

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 class is an Inner class of another. to the source file of this class. It is instantiated from the Attribute.readAttribute() method.
Author
M. Dahm
Version
$Id: InnerClasses.java,v 1.5 2009/09/15 19:40:12 aclement Exp $
See Also
Attribute

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
InnerClasses(InnerClasses c)

Initialize from another object.

public
InnerClasses(int
Index in constant pool to CONSTANT_Utf8
name_index
,
int
Content length in bytes
length
,
InnerClass[]
array of inner classes attributes
inner_classes
,
ConstantPool
Array of constants
constant_pool
)

pack-priv
InnerClasses(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 InnerClass[]

Returns:

array of inner class "records"
getInnerClasses
()

public final void
setInnerClasses(InnerClass[] inner_classes)

public final String

Returns:

String representation.
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

inner_classesback to summary
private InnerClass[] inner_classes
number_of_classesback to summary
private int number_of_classes

Constructor Detail

InnerClassesback to summary
public InnerClasses(InnerClasses c)

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

InnerClassesback to summary
public InnerClasses(int name_index, int length, InnerClass[] inner_classes, ConstantPool constant_pool)
Parameters
name_index:int

Index in constant pool to CONSTANT_Utf8

length:int

Content length in bytes

inner_classes:InnerClass[]

array of inner classes attributes

constant_pool:ConstantPool

Array of constants

InnerClassesback to summary
pack-priv InnerClasses(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
getInnerClassesback to summary
public final InnerClass[] getInnerClasses()
Returns:InnerClass[]

array of inner class "records"

setInnerClassesback to summary
public final void setInnerClasses(InnerClass[] inner_classes)
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

String representation.

Annotations
@Override