public class ConstantString extends Constant
constantPool| Constructor and Description |
|---|
ConstantString(Constant[] constantPool,
DataInput inputStream)
constructs a new ConstantString
|
ConstantString(Constant[] constantPool,
int stringIndex)
constructs a new ConstantString
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStringIndex()
returns the name index
|
int |
getTag()
returns the tag of the constant
|
String |
getValue()
returns the className of this constant
|
String |
toString() |
readConstant, toStringpublic ConstantString(Constant[] constantPool, DataInput inputStream) throws IOException
constantPool - the constantPool it is part ofinputStream - the inputstream to read fromIOException - on failurepublic ConstantString(Constant[] constantPool, int stringIndex)
constantPool - the constantPool it is part ofstringIndex - the stringIndexpublic int getTag()
ConstantgetTag in class ConstantConstant.getTag()public int getStringIndex()
public String getValue()
public String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.