fr.umlv.corosol.classfile.constant
Interface JConstantString
- All Superinterfaces:
- JClassFileItem, JConstant, JLoadableConstant, JObject
- All Known Implementing Classes:
- DefaultJConstantString
public interface JConstantString
- extends JLoadableConstant
An JConstantString object represents a
CONSTANT_String_info entry of a constant pool.
A CONSTANT_String_info entry is used to represent constant object
of the type String. Among its items there is an index into the
constant pool : it is a index to a CONSTANT_Utf8_info entry
representing the sequence of characters which will initialize a
String object.
- Author:
- Christophe Deleray
- See Also:
JConstantPool
| 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 designed by this constant pool
entry. |
int |
getStringIndex()
Returns the index of a CONSTANT_Utf8_info entry representing
the sequence of characters which will initialize a String
object. |
void |
setStringIndex(int stringIndex)
Sets the index of the CONSTANT_Utf8_info entry representing
the sequence of characters which will initialize a String
object. |
getString
java.lang.String getString()
- Returns the String object designed by this constant pool
entry.
- Returns:
- the string represented by this entry
getStringIndex
int getStringIndex()
- Returns the index of a CONSTANT_Utf8_info entry representing
the sequence of characters which will initialize a String
object.
setStringIndex
void setStringIndex(int stringIndex)
- Sets the index of the CONSTANT_Utf8_info entry representing
the sequence of characters which will initialize a String
object.
- Parameters:
stringIndex - the index of the entry containing the characters of a
*String