All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Constant.ConstantUtf8

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Constant.Constant
           |
           +----harpoon.ClassFile.Raw.Constant.ConstantUtf8

public class ConstantUtf8
extends Constant
The CONSTANT_Utf8_info structure is used to represent constant string values.

UTF-8 strings are encoded so that character sequences that contain only non-null ASCII characters can be represented using only one byte per character, but characters of up to 16 bits can be represented.

Version:
$Id: ConstantUtf8.java,v 1.12 1998/10/11 03:01:15 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Constant

Variable Index

 o val
The value of the string constant

Constructor Index

 o ConstantUtf8(ClassFile, String)
Constructor.

Method Index

 o toString()
Create a human-readable representation of this constant.
 o write(ClassDataOutputStream)
Write to a bytecode file.

Variables

 o val
 public String val
The value of the string constant

Constructors

 o ConstantUtf8
 public ConstantUtf8(ClassFile parent,
                     String val)
Constructor.

Methods

 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to a bytecode file.

Overrides:
write in class Constant
 o toString
 public String toString()
Create a human-readable representation of this constant.

Overrides:
toString in class Constant

All Packages  Class Hierarchy  This Package  Previous  Next  Index