Class ConstantString
java.lang.Object
org.aspectj.apache.bcel.classfile.Constant
org.aspectj.apache.bcel.classfile.ConstantString
This class is derived from the abstract Constant class and
represents a reference to a String object.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept(ClassVisitor v)
void
dump(DataOutputStream file)
getString(ConstantPool cpool)
int
getValue()
toString()
-
Constructor Details
-
ConstantString
public ConstantString(int stringIndex)
-
-
Method Details
-
accept
-
dump
- Specified by:
dump
in classConstant
- Throws:
IOException
-
getValue
-
getStringIndex
public final int getStringIndex() -
toString
-
getString
- Returns:
- the string, as dereferenced using the internal index into the supplied constant pool
-