
jas.LongCP Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasmin Show documentation
Show all versions of jasmin Show documentation
Java Assembler Interface for the Soot framework
package jas;
import java.io.*;
/**
* Wrap an Long constant reference with this CPE.
*
* @author $Author: fqian $
* @version $Revision: 1.1 $
*/
public class LongCP extends CP implements RuntimeConstants
{
long val;
/**
* @param n Value for Long constant
*/
public LongCP(long n)
{
uniq = ("Long: @#$" + n).intern();
val = n;
}
void resolve(ClassEnv e) { return; }
void write(ClassEnv e, DataOutputStream out)
throws IOException
{
out.writeByte(CONSTANT_LONG);
out.writeLong(val);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy