classycle.classfile
Class UTF8Constant

java.lang.Object
  extended by classycle.classfile.Constant
      extended by classycle.classfile.UTF8Constant

public class UTF8Constant
extends Constant

Constant of an arbitrary Unicode string.

Author:
Franz-Josef Elmer

Constructor Summary
UTF8Constant(Constant[] pool, java.lang.String string)
          Creates an instance for the specified string.
 
Method Summary
 java.lang.String getString()
          Returns the wrapped string.
 java.lang.String toString()
          Returns the constant type and the wrapped string.
 
Methods inherited from class classycle.classfile.Constant
extractConstantPool, getConstant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UTF8Constant

public UTF8Constant(Constant[] pool,
                    java.lang.String string)
Creates an instance for the specified string.

Parameters:
pool - Constant pool.
string - wrapped string.
Method Detail

getString

public java.lang.String getString()
Returns the wrapped string.


toString

public java.lang.String toString()
Returns the constant type and the wrapped string.

Overrides:
toString in class java.lang.Object