fr.umlv.corosol.classfile.constant
Interface JConstantUtf8

All Superinterfaces:
JClassFileItem, JConstant, JObject
All Known Implementing Classes:
DefaultJConstantUtf8

public interface JConstantUtf8
extends JConstant

A JConstantUtf8 object represents a CONSTANT_Utf8_info entry of a constant pool.

The CONSTANT_Utf8_infos entry is used to represent constant string values. This entry contains an UTF-8 character sequence.

Author:
Christophe Deleray
See Also:
JConstantPool

Field Summary
 
Fields inherited from interface fr.umlv.corosol.classfile.constant.JConstant
CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACE_METHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAME_AND_TYPE, CONSTANT_STRING, CONSTANT_UTF8
 
Method Summary
 java.lang.String getString()
          Returns the String object representing the Utf8 character sequence of this entry.
 void setString(java.lang.String string)
          Sets this entry with the Utf8 character sequence of the specified String object.
 
Methods inherited from interface fr.umlv.corosol.classfile.constant.JConstant
getLength, getTag, toString
 
Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem
getConstantPool, readItem, setConstantPool, writeItem
 

Method Detail

getString

java.lang.String getString()
Returns the String object representing the Utf8 character sequence of this entry.

Returns:
an Utf8 String object designed by this entry

setString

void setString(java.lang.String string)
Sets this entry with the Utf8 character sequence of the specified String object.

Parameters:
string - an Utf8 String object