public class InnerClassesAttr extends Attribute
| Modifier and Type | Class and Description |
|---|---|
static class |
InnerClassesAttr.Info |
CODE, CONSTANT_VALUE, DEPRECATED, ENCLOSING_METHOD, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, RUNTIME_INVISIBLE_ANNOTATIONS, RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_VISIBLE_ANNOTATIONS, RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, SIGNATURE, SOURCE_FILE, STACK_MAP_TABLE, SYNTHETIC| Constructor and Description |
|---|
InnerClassesAttr(ConstantPool cp) |
InnerClassesAttr(ConstantPool cp,
String name) |
InnerClassesAttr(ConstantPool cp,
String name,
int length,
DataInput din) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInnerClass(String inner,
String outer,
String name,
Modifiers modifiers) |
InnerClassesAttr.Info[] |
getInnerClassesInfo() |
int |
getLength()
Returns the length (in bytes) of this attribute in the class file.
|
void |
writeDataTo(DataOutput dout)
Write just the attribute specific data.
|
getAttributes, getConstantPool, getName, getNameConstant, readFrom, skipBytes, writeTopublic InnerClassesAttr(ConstantPool cp)
public InnerClassesAttr(ConstantPool cp, String name)
public InnerClassesAttr(ConstantPool cp, String name, int length, DataInput din) throws IOException
IOExceptionpublic void addInnerClass(String inner, String outer, String name, Modifiers modifiers)
inner - The full inner class nameouter - The full outer class namename - The simple name of the inner class, or null if anonymousmodifiers - Modifiers for the inner classpublic InnerClassesAttr.Info[] getInnerClassesInfo()
public int getLength()
Attributepublic void writeDataTo(DataOutput dout) throws IOException
AttributewriteDataTo in class AttributeIOExceptionCopyright © 2004-2015 Cojen. All Rights Reserved.