com.vladium.jcd.cls.constant
Class CONSTANT_String_info
java.lang.Object
com.vladium.jcd.cls.constant.CONSTANT_info
com.vladium.jcd.cls.constant.CONSTANT_literal_info
com.vladium.jcd.cls.constant.CONSTANT_String_info
- All Implemented Interfaces:
- java.lang.Cloneable, IClassFormatOutput
- public final class CONSTANT_String_info
- extends CONSTANT_literal_info
The CONSTANT_String_info structure is used to represent constant objects of
the type java.lang.String.
The value of the string_index item must be a valid index into the constant pool
table. The constant pool entry at that index must be a CONSTANT_Utf8_info
structure representing the sequence of characters to which the
java.lang.String object is to be initialized.
- Author:
- (C) 2001, Vlad Roubtsov
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TAG
public static final byte TAG
- See Also:
- Constant Field Values
m_string_index
public int m_string_index
CONSTANT_String_info
public CONSTANT_String_info(int string_index)
CONSTANT_String_info
protected CONSTANT_String_info(UDataInputStream bytes)
throws java.io.IOException
tag
public final byte tag()
- Description copied from class:
CONSTANT_info
- Returns the tag byte for this CONSTANT type [this data is
static class data].
- Specified by:
tag
in class CONSTANT_info
accept
public java.lang.Object accept(ICONSTANTVisitor visitor,
java.lang.Object ctx)
- Specified by:
accept
in class CONSTANT_info
toString
public java.lang.String toString()
- Specified by:
toString
in class CONSTANT_info
writeInClassFormat
public void writeInClassFormat(UDataOutputStream out)
throws java.io.IOException
- Specified by:
writeInClassFormat
in interface IClassFormatOutput
- Overrides:
writeInClassFormat
in class CONSTANT_info
- Throws:
java.io.IOException