javassist.bytecode
public class InnerClassesAttribute extends AttributeInfo
InnerClasses_attribute.
| Field Summary | |
|---|---|
| static 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(String inner, String outer, String name, int flags)
Appends a new entry.
|
| void | append(int inner, int outer, int name, int flags)
Appends a new entry.
|
| AttributeInfo | copy(ConstPool newCp, Map classnames)
Makes a copy. |
| 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. |
| 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. |
| 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. |
"InnerClasses".See Also: InnerClassesAttribute
classes[nth].inner_class_access_flags.Parameters: inner inner_class_info_index outer outer_class_info_index name inner_name_index flags inner_class_access_flags
Parameters: inner inner_class_info_index outer outer_class_info_index name inner_name_index flags inner_class_access_flags
Map object.
Parameters: newCp the constant pool table used by the new copy. classnames pairs of replaced and substituted class names.
classes[nth].inner_class_info_index.
Returns: null or the class name.
classes[nth].inner_class_info_index.classes[nth].inner_name_index.
Returns: null or the class name.
classes[nth].inner_name_index.classes[nth].outer_class_info_index.
Returns: null or the class name.
classes[nth].outer_class_info_index.classes[nth].inner_class_access_flags to
the given index.classes[nth].inner_class_info_index to
the given index.classes[nth].inner_name_index to
the given index.classes[nth].outer_class_info_index to
the given index.number_of_classes.