proguard.classfile.attribute
Class InnerClassesInfo

java.lang.Object
  extended by proguard.classfile.attribute.InnerClassesInfo
All Implemented Interfaces:
VisitorAccepter

public class InnerClassesInfo
extends java.lang.Object
implements VisitorAccepter

Representation of an Inner Classes table entry.


Field Summary
 int u2innerClassAccessFlags
           
 int u2innerClassIndex
           
 int u2innerNameIndex
           
 int u2outerClassIndex
           
 java.lang.Object visitorInfo
          An extra field in which visitors can store information.
 
Constructor Summary
InnerClassesInfo()
           
 
Method Summary
protected  int getInnerClassIndex()
          Returns the inner class index.
protected  int getInnerNameIndex()
          Returns the name index.
 java.lang.Object getVisitorInfo()
          Gets the visitor information of the visitor accepter.
 void innerClassConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
          Applies the given constant pool visitor to the class constant of the inner class, if any.
 void innerNameConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
          Applies the given constant pool visitor to the Utf8 constant of the inner name, if any.
 void outerClassConstantAccept(Clazz clazz, ConstantVisitor constantVisitor)
          Applies the given constant pool visitor to the class constant of the outer class, if any.
protected  void setInnerNameIndex(int index)
          Sets the name index.
 void setVisitorInfo(java.lang.Object visitorInfo)
          Sets the visitor information of the visitor accepter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

u2innerClassIndex

public int u2innerClassIndex

u2outerClassIndex

public int u2outerClassIndex

u2innerNameIndex

public int u2innerNameIndex

u2innerClassAccessFlags

public int u2innerClassAccessFlags

visitorInfo

public java.lang.Object visitorInfo
An extra field in which visitors can store information.

Constructor Detail

InnerClassesInfo

public InnerClassesInfo()
Method Detail

getInnerClassIndex

protected int getInnerClassIndex()
Returns the inner class index.


getInnerNameIndex

protected int getInnerNameIndex()
Returns the name index.


setInnerNameIndex

protected void setInnerNameIndex(int index)
Sets the name index.


innerClassConstantAccept

public void innerClassConstantAccept(Clazz clazz,
                                     ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the class constant of the inner class, if any.


outerClassConstantAccept

public void outerClassConstantAccept(Clazz clazz,
                                     ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the class constant of the outer class, if any.


innerNameConstantAccept

public void innerNameConstantAccept(Clazz clazz,
                                    ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the Utf8 constant of the inner name, if any.


getVisitorInfo

public java.lang.Object getVisitorInfo()
Description copied from interface: VisitorAccepter
Gets the visitor information of the visitor accepter.

Specified by:
getVisitorInfo in interface VisitorAccepter

setVisitorInfo

public void setVisitorInfo(java.lang.Object visitorInfo)
Description copied from interface: VisitorAccepter
Sets the visitor information of the visitor accepter.

Specified by:
setVisitorInfo in interface VisitorAccepter