first commit
This commit is contained in:
commit
063194f8be
349 changed files with 36508 additions and 0 deletions
32
jasmin/jasmin-2.4/src/jas/FloatCP.java
Normal file
32
jasmin/jasmin-2.4/src/jas/FloatCP.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package jas;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
|
||||
/**
|
||||
* Wrap an Float constant reference with this CPE.
|
||||
*
|
||||
* @author $Author: jonmeyerny $
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
|
||||
public class FloatCP extends CP implements RuntimeConstants
|
||||
{
|
||||
float val;
|
||||
|
||||
/**
|
||||
* @param n Value for Float constant
|
||||
*/
|
||||
public FloatCP(float n)
|
||||
{
|
||||
uniq = ("Float: @#$" + n).intern();
|
||||
val = n;
|
||||
}
|
||||
void resolve(ClassEnv e) { return; }
|
||||
void write(ClassEnv e, DataOutputStream out)
|
||||
throws IOException
|
||||
{
|
||||
out.writeByte(CONSTANT_FLOAT);
|
||||
out.writeFloat(val);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue