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.visitConstantNameAndType(this);
|
public final void | dump(java.io.DataOutputStream file)Dump name and signature index to file stream in binary format.
file.writeByte(tag);
file.writeShort(name_index);
file.writeShort(signature_index);
|
public final java.lang.String | getName(com.sun.org.apache.bcel.internal.classfile.ConstantPool cp)
return cp.constantToString(getNameIndex(), Constants.CONSTANT_Utf8);
|
public final int | getNameIndex() return name_index;
|
public final java.lang.String | getSignature(com.sun.org.apache.bcel.internal.classfile.ConstantPool cp)
return cp.constantToString(getSignatureIndex(), Constants.CONSTANT_Utf8);
|
public final int | getSignatureIndex() return signature_index;
|
public final void | setNameIndex(int name_index)
this.name_index = name_index;
|
public final void | setSignatureIndex(int signature_index)
this.signature_index = signature_index;
|
public final java.lang.String | toString()
return super.toString() + "(name_index = " + name_index +
", signature_index = " + signature_index + ")";
|