|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavassist.bytecode.AttributeInfo
javassist.bytecode.InnerClassesAttribute
public class InnerClassesAttribute
InnerClasses_attribute.
| Field Summary | |
|---|---|
static java.lang.String |
tag
The name of this attribute "InnerClasses". |
| Constructor Summary | |
|---|---|
InnerClassesAttribute(ConstPool cp)
Constructs an empty InnerClasses attribute. |
|
| Method Summary | |
|---|---|
int |
accessFlags(int nth)
Returns classes[nth].inner_class_access_flags. |
void |
append(int inner,
int outer,
int name,
int flags)
Appends a new entry. |
void |
append(java.lang.String inner,
java.lang.String outer,
java.lang.String name,
int flags)
Appends a new entry. |
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy. |
java.lang.String |
innerClass(int nth)
Returns the class name indicated by classes[nth].inner_class_info_index. |
int |
innerClassIndex(int nth)
Returns classes[nth].inner_class_info_index. |
java.lang.String |
innerName(int nth)
Returns the simple class name indicated by classes[nth].inner_name_index. |
int |
innerNameIndex(int nth)
Returns classes[nth].inner_name_index. |
java.lang.String |
outerClass(int nth)
Returns the class name indicated by classes[nth].outer_class_info_index. |
int |
outerClassIndex(int nth)
Returns classes[nth].outer_class_info_index. |
void |
setAccessFlags(int nth,
int flags)
Sets classes[nth].inner_class_access_flags to
the given index. |
void |
setInnerClassIndex(int nth,
int index)
Sets classes[nth].inner_class_info_index to
the given index. |
void |
setInnerNameIndex(int nth,
int index)
Sets classes[nth].inner_name_index to
the given index. |
void |
setOuterClassIndex(int nth,
int index)
Sets classes[nth].outer_class_info_index to
the given index. |
int |
tableLength()
Returns number_of_classes. |
| Methods inherited from class javassist.bytecode.AttributeInfo |
|---|
get, getConstPool, getName, length, set |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String tag
"InnerClasses".
| Constructor Detail |
|---|
public InnerClassesAttribute(ConstPool cp)
append(String, String, String, int)| Method Detail |
|---|
public int tableLength()
number_of_classes.
public int innerClassIndex(int nth)
classes[nth].inner_class_info_index.
public java.lang.String innerClass(int nth)
classes[nth].inner_class_info_index.
public void setInnerClassIndex(int nth,
int index)
classes[nth].inner_class_info_index to
the given index.
public int outerClassIndex(int nth)
classes[nth].outer_class_info_index.
public java.lang.String outerClass(int nth)
classes[nth].outer_class_info_index.
public void setOuterClassIndex(int nth,
int index)
classes[nth].outer_class_info_index to
the given index.
public int innerNameIndex(int nth)
classes[nth].inner_name_index.
public java.lang.String innerName(int nth)
classes[nth].inner_name_index.
public void setInnerNameIndex(int nth,
int index)
classes[nth].inner_name_index to
the given index.
public int accessFlags(int nth)
classes[nth].inner_class_access_flags.
public void setAccessFlags(int nth,
int flags)
classes[nth].inner_class_access_flags to
the given index.
public void append(java.lang.String inner,
java.lang.String outer,
java.lang.String name,
int flags)
inner - inner_class_info_indexouter - outer_class_info_indexname - inner_name_indexflags - inner_class_access_flags
public void append(int inner,
int outer,
int name,
int flags)
inner - inner_class_info_indexouter - outer_class_info_indexname - inner_name_indexflags - inner_class_access_flags
public AttributeInfo copy(ConstPool newCp,
java.util.Map classnames)
Map object.
copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
class names.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||