public class StringConstant extends Constant
| Constructor and Description |
|---|
StringConstant(Constant[] pool,
int stringIndex)
Creates an instance for the specfied index.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getString()
Returns the string value.
|
java.lang.String |
toString()
Returns the constant type and the string value.
|
extractConstantPool, getConstantpublic StringConstant(Constant[] pool, int stringIndex)
pool - Constant pool. Needed for resolving the reference.stringIndex - Index of an UTF8Constant.