|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.RawClass.Attribute
harpoon.IR.RawClass.AttributeInnerClasses
public class AttributeInnerClasses
InnerClasses
attributes define the encodings of
bytecode names of inner classes. The attribute is stored in
the ClassFile
structure.
Each array element in the attribute records a class with an encoded name, its defining scope, its simple name, and a bitmask of the originally declared, untransformed access flags.
InnerClass
,
Attribute
,
ClassFile
Field Summary | |
---|---|
static String |
ATTRIBUTE_NAME
The string naming this Attribute type. |
InnerClass[] |
classes
Each array element records a class with an encoded name, its defining scope, its simple name, and its originally declared access flags. |
Fields inherited from class harpoon.IR.RawClass.Attribute |
---|
attribute_name_index, parent |
Constructor Summary | |
---|---|
AttributeInnerClasses(ClassFile parent,
int attribute_name_index,
InnerClass[] classes)
Constructor. |
Method Summary | |
---|---|
long |
attribute_length()
The value of the attribute_length item indicates
the length of the attribute, excluding the initial six bytes. |
InnerClass |
classes(int i)
|
int |
number_of_classes()
|
void |
print(PrintWriter pw,
int indent)
Pretty-print this attribute structure. |
void |
write(ClassDataOutputStream out)
Write to bytecode stream. |
Methods inherited from class harpoon.IR.RawClass.Attribute |
---|
attribute_name_index, attribute_name, read, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ATTRIBUTE_NAME
Attribute
type.
public InnerClass[] classes
Constructor Detail |
---|
public AttributeInnerClasses(ClassFile parent, int attribute_name_index, InnerClass[] classes)
Method Detail |
---|
public long attribute_length()
Attribute
attribute_length
item indicates
the length of the attribute, excluding the initial six bytes.
attribute_length
in class Attribute
public int number_of_classes()
public InnerClass classes(int i)
public void write(ClassDataOutputStream out) throws IOException
write
in class Attribute
IOException
public void print(PrintWriter pw, int indent)
print
in class Attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |