proguard.classfile.constant
Class FloatConstant

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

public class FloatConstant
extends Constant

This Constant represents a float constant in the constant pool.


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

f4value

public float f4value
Constructor Detail

FloatConstant

public FloatConstant()
Creates an uninitialized FloatConstant.


FloatConstant

public FloatConstant(float value)
Creates a new FloatConstant with the given float value.

Method Detail

getValue

public float getValue()
Returns the float value of this FloatConstant.


setValue

public void setValue(float value)
Sets the float value of this FloatConstant.


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