proguard.classfile.constant
Class Constant

java.lang.Object
  extended by proguard.classfile.constant.Constant
All Implemented Interfaces:
VisitorAccepter
Direct Known Subclasses:
ClassConstant, DoubleConstant, FloatConstant, IntegerConstant, LongConstant, NameAndTypeConstant, RefConstant, StringConstant, Utf8Constant

public abstract class Constant
extends java.lang.Object
implements VisitorAccepter

This abstract class represents an entry in the ConstantPool. Specific types of entries are subclassed from it.


Field Summary
 java.lang.Object visitorInfo
          An extra field in which visitors can store information.
 
Constructor Summary
Constant()
           
 
Method Summary
abstract  void accept(Clazz clazz, ConstantVisitor constantVisitor)
          Accepts the given visitor.
abstract  int getTag()
          Returns the constant pool info tag that specifies the entry type.
 java.lang.Object getVisitorInfo()
          Gets the visitor information of the visitor accepter.
 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

visitorInfo

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

Constructor Detail

Constant

public Constant()
Method Detail

getTag

public abstract int getTag()
Returns the constant pool info tag that specifies the entry type.


accept

public abstract void accept(Clazz clazz,
                            ConstantVisitor constantVisitor)
Accepts the given visitor.


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