/** * Bind the given message's substitution locations with the given string values. * * @param message the message to be manipulated * @param binding the object to be inserted into the message * @return the manipulated String */ public static String bind(String message, Object binding) { return bind(message, new Object[] {binding}); }
/** * Bind the given message's substitution locations with the given string values. * * @param message the message to be manipulated * @param binding1 An object to be inserted into the message * @param binding2 A second object to be inserted into the message * @return the manipulated String */ public static String bind(String message, Object binding1, Object binding2) { return bind(message, new Object[] {binding1, binding2}); }
private StringBuffer appendConstantMethodType(StringBuffer s, String messageKind, int opcode, int index, IConstantPoolEntry constantPoolEntry) { return s.append(Messages.bind(messageKind, new String[] { OpcodeStringValues.BYTECODE_NAMES[opcode], Integer.toString(index), new String(constantPoolEntry.getMethodDescriptor()) })); }
private void disassemble(IClassFileAttribute classFileAttribute, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) { writeNewLine(buffer, lineSeparator, tabNumber + 1); buffer.append(Messages.bind(Messages.disassembler_genericattributeheader, new String[] { new String(classFileAttribute.getAttributeName()), Long.toString(classFileAttribute.getAttributeLength()) })); }
/** * @see IBytecodeVisitor#_astore_0(int) */ @Override public void _astore_0(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_0], getLocalVariableName(pc, 0) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_astore_2(int) */ @Override public void _astore_2(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_2], getLocalVariableName(pc, 2) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_dstore_1(int) */ @Override public void _dstore_1(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE_1], getLocalVariableName(pc, 1) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_fload_1(int) */ @Override public void _fload_1(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_load, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_1], getLocalVariableName(pc, 1) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_fload_3(int) */ @Override public void _fload_3(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_load, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_3], getLocalVariableName(pc, 3) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_fstore_3(int) */ @Override public void _fstore_3(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE_3], getLocalVariableName(pc, 3) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_fstore(int, int) */ @Override public void _fstore(int pc, int index) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE], getLocalVariableName(pc, index, true) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_iload_3(int) */ @Override public void _iload_3(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_load, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ILOAD_3], getLocalVariableName(pc, 3) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_istore_3(int) */ @Override public void _istore_3(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISTORE_3], getLocalVariableName(pc, 3) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_aload_1(int) */ @Override public void _aload_1(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_load, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ALOAD_1], getLocalVariableName(pc, 1) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_astore_3(int) */ @Override public void _astore_3(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_3], getLocalVariableName(pc, 3) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_dload_2(int) */ @Override public void _dload_2(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_load, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DLOAD_2], getLocalVariableName(pc, 2) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_dstore_0(int) */ @Override public void _dstore_0(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE_0], getLocalVariableName(pc, 0) })); writeNewLine(); }
/** * @see IBytecodeVisitor#_fload(int, int) */ @Override public void _fload(int pc, int index) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_load, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD], getLocalVariableName(pc, index, true) })); writeNewLine(); }
private StringBuffer appendConstantDynamic(StringBuffer s, String messageKind, int opcode, int index, IConstantPoolEntry entry) { return s.append(Messages.bind(messageKind, new String[] { OpcodeStringValues.BYTECODE_NAMES[opcode], Integer.toString(index), Integer.toString(((IConstantPoolEntry2) entry).getBootstrapMethodAttributeIndex()), new String(entry.getFieldName()), returnClassName(Signature.toCharArray(entry.getFieldDescriptor())) })); } /**
/** * @see IBytecodeVisitor#_lstore_0(int) */ @Override public void _lstore_0(int pc) { dumpPcNumber(pc); this.buffer.append(Messages.bind(Messages.classformat_store, new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LSTORE_0], getLocalVariableName(pc, 0) })); writeNewLine(); }