proguard.classfile.constant
Class IntegerConstant

java.lang.Object
  extended by proguard.classfile.constant.Constant
      extended by proguard.classfile.constant.IntegerConstant
All Implemented Interfaces:
VisitorAccepter

public class IntegerConstant
extends Constant

This Constant represents a integer constant in the constant pool.


Field Summary
 int u4value
           
 
Fields inherited from class proguard.classfile.constant.Constant
visitorInfo
 
Constructor Summary
IntegerConstant()
          Creates an uninitialized IntegerConstant.
IntegerConstant(int value)
          Creates a new IntegerConstant with the given integer value.
 
Method Summary
 void accept(Clazz clazz, ConstantVisitor constantVisitor)
          Accepts the given visitor.
 int getTag()
          Returns the constant pool info tag that specifies the entry type.
 int getValue()
          Returns the integer value of this IntegerConstant.
 void setValue(int value)
          Sets the integer value of this IntegerConstant.
 
Methods inherited from class proguard.classfile.constant.Constant
getVisitorInfo, setVisitorInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

u4value

public int u4value
Constructor Detail

IntegerConstant

public IntegerConstant()
Creates an uninitialized IntegerConstant.


IntegerConstant

public IntegerConstant(int value)
Creates a new IntegerConstant with the given integer value.

Method Detail

getValue

public int getValue()
Returns the integer value of this IntegerConstant.


setValue

public void setValue(int value)
Sets the integer value of this IntegerConstant.


getTag

public int getTag()
Description copied from class: Constant
Returns the constant pool info tag that specifies the entry type.

Specified by:
getTag in class Constant

accept

public void accept(Clazz clazz,
                   ConstantVisitor constantVisitor)
Description copied from class: Constant
Accepts the given visitor.

Specified by:
accept in class Constant