Methods Summary |
---|
public void | accept(com.sun.org.apache.bcel.internal.classfile.Visitor v)Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. I.e., the hierarchy of methods,
fields, attributes, etc. spawns a tree of objects.
v.visitConstantString(this);
|
public final void | dump(java.io.DataOutputStream file)Dump constant field reference to file stream in binary format.
file.writeByte(tag);
file.writeShort(string_index);
|
public java.lang.String | getBytes(com.sun.org.apache.bcel.internal.classfile.ConstantPool cp)
return (String)getConstantValue(cp);
|
public java.lang.Object | getConstantValue(com.sun.org.apache.bcel.internal.classfile.ConstantPool cp)
Constant c = cp.getConstant(string_index, Constants.CONSTANT_Utf8);
return ((ConstantUtf8)c).getBytes();
|
public final int | getStringIndex()
return string_index;
|
public final void | setStringIndex(int string_index)
this.string_index = string_index;
|
public final java.lang.String | toString()
return super.toString() + "(string_index = " + string_index + ")";
|