Java Code Examples for com.sun.org.apache.bcel.internal.classfile.ConstantPool#constantToString()

The following examples show how to use com.sun.org.apache.bcel.internal.classfile.ConstantPool#constantToString() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Bytecoder   File: InvokeInstruction.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
@Override
public String toString( final ConstantPool cp ) {
    final Constant c = cp.getConstant(super.getIndex());
    final StringTokenizer tok = new StringTokenizer(cp.constantToString(c));
    return Const.getOpcodeName(super.getOpcode()) + " " + tok.nextToken().replace('.', '/')
            + tok.nextToken();
}
 
Example 2
Source Project: Bytecoder   File: CPInstruction.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
@Override
public String toString( final ConstantPool cp ) {
    final Constant c = cp.getConstant(index);
    String str = cp.constantToString(c);
    if (c instanceof ConstantClass) {
        str = str.replace('.', '/');
    }
    return com.sun.org.apache.bcel.internal.Const.getOpcodeName(super.getOpcode()) + " " + str;
}
 
Example 3
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 4
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 5
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 6
Source Project: JDKSourceCode1.8   File: FieldInstruction.java    License: MIT License 4 votes vote down vote up
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 7
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 8
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 9
Source Project: Bytecoder   File: FieldInstruction.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
@Override
public String toString( final ConstantPool cp ) {
    return com.sun.org.apache.bcel.internal.Const.getOpcodeName(super.getOpcode()) + " "
            + cp.constantToString(super.getIndex(), com.sun.org.apache.bcel.internal.Const.CONSTANT_Fieldref);
}
 
Example 10
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 11
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 12
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}
 
Example 13
/**
 * @return mnemonic for instruction with symbolic references resolved
 */
public String toString(ConstantPool cp) {
  return com.sun.org.apache.bcel.internal.Constants.OPCODE_NAMES[opcode] + " " +
    cp.constantToString(index, com.sun.org.apache.bcel.internal.Constants.CONSTANT_Fieldref);
}