org.aspectj.apache.bcel.classfile
Class ConstantString
java.lang.Object
org.aspectj.apache.bcel.classfile.Constant
org.aspectj.apache.bcel.classfile.ConstantString
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public final class ConstantString
- extends Constant
This class is derived from the abstract Constant class and
represents a reference to a String object.
- See Also:
Constant
Fields inherited from class org.aspectj.apache.bcel.classfile.Constant |
tag |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstantString
public ConstantString(int stringIndex)
accept
public void accept(ClassVisitor v)
- Specified by:
accept
in interface Node
- Specified by:
accept
in class Constant
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Specified by:
dump
in class Constant
- Throws:
java.io.IOException
getValue
public java.lang.Integer getValue()
- Specified by:
getValue
in class Constant
- Returns:
- the index of the string in the constant pool
getStringIndex
public final int getStringIndex()
toString
public final java.lang.String toString()
- Overrides:
toString
in class Constant
getString
public java.lang.String getString(ConstantPool cpool)
- Returns:
- the string, as dereferenced using the internal index into the supplied constant pool