proguard.classfile.constant
Class LongConstant

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

public class LongConstant
extends Constant

This Constant represents a long constant in the constant pool.


Field Summary
 long u8value
           
 
Fields inherited from class proguard.classfile.constant.Constant
visitorInfo
 
Constructor Summary
LongConstant()
          Creates an uninitialized LongConstant.
LongConstant(long value)
          Creates a new LongConstant with the given long 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.
 long getValue()
          Returns the long value of this LongConstant.
 void setValue(long value)
          Sets the long value of this LongConstant.
 
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

u8value

public long u8value
Constructor Detail

LongConstant

public LongConstant()
Creates an uninitialized LongConstant.


LongConstant

public LongConstant(long value)
Creates a new LongConstant with the given long value.

Method Detail

getValue

public long getValue()
Returns the long value of this LongConstant.


setValue

public void setValue(long value)
Sets the long value of this LongConstant.


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