ProGuard

proguard.classfile
Class InnerClassesAttrInfo

java.lang.Object
  extended byproguard.classfile.AttrInfo
      extended byproguard.classfile.InnerClassesAttrInfo
All Implemented Interfaces:
VisitorAccepter

public class InnerClassesAttrInfo
extends AttrInfo

Representation of an inner classes attribute.


Field Summary
 InnerClassesInfo[] classes
           
 int u2numberOfClasses
           
 
Fields inherited from class proguard.classfile.AttrInfo
u2attrNameIndex, visitorInfo
 
Constructor Summary
protected InnerClassesAttrInfo()
           
 
Method Summary
 void accept(ClassFile classFile, AttrInfoVisitor attrInfoVisitor)
          Accepts the given visitor.
protected  int getAttrInfoLength()
          Returns the length in bytes of the attribute.
protected  InnerClassesInfo[] getInfo()
          Returns the array of inner classes data.
 void innerClassEntriesAccept(ClassFile classFile, InnerClassesInfoVisitor innerClassesInfoVisitor)
          Applies the given visitor to all inner classes.
protected  void readInfo(DataInput din, ClassFile cf)
          Reads the data following the header.
protected  void writeInfo(DataOutput dout)
          Exports data following the header to a DataOutput stream.
 
Methods inherited from class proguard.classfile.AttrInfo
accept, accept, accept, create, getAttributeName, getVisitorInfo, setVisitorInfo, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

u2numberOfClasses

public int u2numberOfClasses

classes

public InnerClassesInfo[] classes
Constructor Detail

InnerClassesAttrInfo

protected InnerClassesAttrInfo()
Method Detail

getInfo

protected InnerClassesInfo[] getInfo()
                              throws Exception
Returns the array of inner classes data.

Throws:
Exception

getAttrInfoLength

protected int getAttrInfoLength()
Description copied from class: AttrInfo
Returns the length in bytes of the attribute.

Specified by:
getAttrInfoLength in class AttrInfo

readInfo

protected void readInfo(DataInput din,
                        ClassFile cf)
                 throws IOException
Description copied from class: AttrInfo
Reads the data following the header.

Specified by:
readInfo in class AttrInfo
Throws:
IOException

writeInfo

protected void writeInfo(DataOutput dout)
                  throws IOException
Description copied from class: AttrInfo
Exports data following the header to a DataOutput stream.

Specified by:
writeInfo in class AttrInfo
Throws:
IOException

accept

public void accept(ClassFile classFile,
                   AttrInfoVisitor attrInfoVisitor)
Description copied from class: AttrInfo
Accepts the given visitor. This default implementation does nothing, which is useful for attributes that require a context.

Overrides:
accept in class AttrInfo

innerClassEntriesAccept

public void innerClassEntriesAccept(ClassFile classFile,
                                    InnerClassesInfoVisitor innerClassesInfoVisitor)
Applies the given visitor to all inner classes.


ProGuard