Package classycle.classfile
Class StringConstant
- java.lang.Object
-
- classycle.classfile.Constant
-
- classycle.classfile.StringConstant
-
public class StringConstant extends Constant
Constant of a String value.- Author:
- Franz-Josef Elmer
-
-
Constructor Summary
Constructors Constructor Description StringConstant(Constant[] pool, int stringIndex)
Creates an instance for the specfied index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getString()
Returns the string value.java.lang.String
toString()
Returns the constant type and the string value.-
Methods inherited from class classycle.classfile.Constant
extractConstantPool, getConstant
-
-
-
-
Constructor Detail
-
StringConstant
public StringConstant(Constant[] pool, int stringIndex)
Creates an instance for the specfied index.- Parameters:
pool
- Constant pool. Needed for resolving the reference.stringIndex
- Index of anUTF8Constant
.
-
-