nl.tudelft.simulation.dsol.interpreter.classfile
Class ConstantFloat
java.lang.Object
nl.tudelft.simulation.dsol.interpreter.classfile.Constant
nl.tudelft.simulation.dsol.interpreter.classfile.ConstantFloat
public class ConstantFloat
- extends Constant
A ConstantFloat
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:25:12 $
- Author:
- Peter Jacobs
ConstantFloat
public ConstantFloat(Constant[] constantPool,
DataInput inputStream)
throws IOException
- constructs a new ConstantFloat
- Parameters:
constantPool
- the constantPool it is part ofinputStream
- the inputstream to read from
- Throws:
IOException
- on failure
ConstantFloat
public ConstantFloat(Constant[] constantPool,
float bytes)
- constructs a new ConstantFloat
- Parameters:
constantPool
- the constantPool it is part ofbytes
- the bytes
getTag
public int getTag()
- Description copied from class:
Constant
- returns the tag of the constant
- Specified by:
getTag
in class Constant
- Returns:
- int the constant tag
- See Also:
Constant.getTag()
getValue
public float getValue()
- returns the value
- Returns:
- float the value
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.