All Downloads are FREE. Search and download functionalities are using the official Maven repository.

opu.lljvm-python.0.2.0-EXPERIMENTAL.source-code.AsciiCP Maven / Gradle / Ivy

The newest version!
/**
 * This is a class to create Ascii CP entries.
 *
 * @author $Author: jonmeyerny $
 * @version $Revision: 1.1 $
 */

package jas;

import java.io.*;


public class AsciiCP extends CP implements RuntimeConstants
{
  /**
   * @param s Name of the ascii constant pool entry
   */
  public AsciiCP(String s)
  { uniq = s.intern(); }
  void resolve(ClassEnv e)
  { return; }

  public String toString() { return "AsciiCP: " + uniq; }
  void write(ClassEnv e, DataOutputStream out)
    throws IOException
  {
    out.writeByte(CONSTANT_UTF8);
    out.writeUTF(uniq);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy