/projects/aspectj-1.6.9/aspectjtools1.6.9/org/aspectj/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 1837 lines · 1175 code · 166 blank · 496 comment · 17 complexity · 916014de6302acef740fc2a413db573d MD5 · raw file
- /*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
- package org.aspectj.org.eclipse.jdt.internal.core.util;
-
- import org.aspectj.org.eclipse.jdt.core.Signature;
- import org.aspectj.org.eclipse.jdt.core.compiler.CharOperation;
- import org.aspectj.org.eclipse.jdt.core.util.ClassFileBytesDisassembler;
- import org.aspectj.org.eclipse.jdt.core.util.IBytecodeVisitor;
- import org.aspectj.org.eclipse.jdt.core.util.ICodeAttribute;
- import org.aspectj.org.eclipse.jdt.core.util.IConstantPoolConstant;
- import org.aspectj.org.eclipse.jdt.core.util.IConstantPoolEntry;
- import org.aspectj.org.eclipse.jdt.core.util.ILocalVariableAttribute;
- import org.aspectj.org.eclipse.jdt.core.util.ILocalVariableTableEntry;
- import org.aspectj.org.eclipse.jdt.core.util.IOpcodeMnemonics;
- import org.aspectj.org.eclipse.jdt.core.util.OpcodeStringValues;
-
- /**
- * Default implementation of ByteCodeVisitor
- */
- public class DefaultBytecodeVisitor implements IBytecodeVisitor {
- private static final String EMPTY_CLASS_NAME = "\"\""; //$NON-NLS-1$
- private static final String EMPTY_LOCAL_NAME = ""; //$NON-NLS-1$
- private static final int T_BOOLEAN = 4;
- private static final int T_CHAR = 5;
- private static final int T_FLOAT = 6;
- private static final int T_DOUBLE = 7;
- private static final int T_BYTE = 8;
- private static final int T_SHORT = 9;
- private static final int T_INT = 10;
- private static final int T_LONG = 11;
-
- private StringBuffer buffer;
- private String lineSeparator;
- private int tabNumber;
- private int digitNumberForPC;
- private ILocalVariableTableEntry[] localVariableTableEntries;
- private int localVariableAttributeLength;
- private int mode;
-
- public DefaultBytecodeVisitor(ICodeAttribute codeAttribute, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) {
- ILocalVariableAttribute localVariableAttribute = codeAttribute.getLocalVariableAttribute();
- this.localVariableAttributeLength = localVariableAttribute == null ? 0 : localVariableAttribute.getLocalVariableTableLength();
- if (this.localVariableAttributeLength != 0) {
- this.localVariableTableEntries = localVariableAttribute.getLocalVariableTable();
- } else {
- this.localVariableTableEntries = null;
- }
- this.buffer = buffer;
- this.lineSeparator = lineSeparator;
- this.tabNumber = tabNumber + 1;
- long codeLength = codeAttribute.getCodeLength();
- this.digitNumberForPC = Long.toString(codeLength).length();
- this.mode = mode;
- }
- /**
- * @see IBytecodeVisitor#_aaload(int)
- */
- public void _aaload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.AALOAD]);
- writeNewLine();
- }
- private void dumpPcNumber(int pc) {
- writeTabs();
- int digitForPC = 1;
- if (pc != 0) {
- digitForPC = Integer.toString(pc).length();
- }
- for (int i = 0, max = this.digitNumberForPC - digitForPC; i < max; i++) {
- buffer.append(' ');
- }
- buffer.append(pc);
- buffer.append(Messages.disassembler_indentation);
- }
-
- /**
- * @see IBytecodeVisitor#_aastore(int)
- */
- public void _aastore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.AASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_aconst_null(int)
- */
- public void _aconst_null(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ACONST_NULL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_aload_0(int)
- */
- public void _aload_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load,
- new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ALOAD_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_aload_1(int)
- */
- public void _aload_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ALOAD_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_aload_2(int)
- */
- public void _aload_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ALOAD_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_aload_3(int)
- */
- public void _aload_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ALOAD_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_aload(int, int)
- */
- public void _aload(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ALOAD],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_anewarray(int, int, IConstantPoolEntry)
- */
- public void _anewarray(int pc, int index, IConstantPoolEntry constantClass) {
- dumpPcNumber(pc);
- buffer
- .append(Messages.bind(Messages.classformat_anewarray, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ANEWARRAY],
- Integer.toString(index),
- returnConstantClassName(constantClass)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_areturn(int)
- */
- public void _areturn(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ARETURN]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_arraylength(int)
- */
- public void _arraylength(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ARRAYLENGTH]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_astore_0(int)
- */
- public void _astore_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_astore_1(int)
- */
- public void _astore_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
- private String getLocalVariableName(int pc, int index) {
- return getLocalVariableName(pc, index, false);
- }
-
- private String getLocalVariableName(int pc, int index, boolean showIndex) {
- int nextPC = pc + 1;
- switch(index) {
- case 0 :
- case 1 :
- case 2 :
- case 3 :
- break;
- default :
- nextPC = index <= 255 ? pc + 2 : pc + 3;
- }
-
- for (int i = 0, max = this.localVariableAttributeLength; i < max; i++) {
- final ILocalVariableTableEntry entry = this.localVariableTableEntries[i];
- final int startPC = entry.getStartPC();
- if (entry.getIndex() == index && (startPC <= nextPC) && ((startPC + entry.getLength()) > nextPC)) {
- final StringBuffer stringBuffer = new StringBuffer();
- if (showIndex) {
- stringBuffer.append(' ').append(index);
- }
- stringBuffer.append(' ').append('[').append(entry.getName()).append(']');
- return String.valueOf(stringBuffer);
- }
- }
- if (showIndex) {
- final StringBuffer stringBuffer = new StringBuffer();
- stringBuffer.append(' ').append(index);
- return String.valueOf(stringBuffer);
- }
- return EMPTY_LOCAL_NAME;
- }
-
- /**
- * @see IBytecodeVisitor#_astore_2(int)
- */
- public void _astore_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_astore_3(int)
- */
- public void _astore_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_astore(int, int)
- */
- public void _astore(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ASTORE],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_athrow(int)
- */
- public void _athrow(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ATHROW]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_baload(int)
- */
- public void _baload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.BALOAD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_bastore(int)
- */
- public void _bastore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.BASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_bipush(int, byte)
- */
- public void _bipush(int pc, byte _byte) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.BIPUSH])
- .append(Messages.disassembler_space)
- .append(_byte);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_caload(int)
- */
- public void _caload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.CALOAD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_castore(int)
- */
- public void _castore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.CASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_checkcast(int, int, IConstantPoolEntry)
- */
- public void _checkcast(int pc, int index, IConstantPoolEntry constantClass) {
- dumpPcNumber(pc);
- buffer
- .append(Messages.bind(Messages.classformat_checkcast, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.CHECKCAST],
- Integer.toString(index),
- returnConstantClassName(constantClass)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_d2f(int)
- */
- public void _d2f(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.D2F]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_d2i(int)
- */
- public void _d2i(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.D2I]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_d2l(int)
- */
- public void _d2l(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.D2L]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dadd(int)
- */
- public void _dadd(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DADD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_daload(int)
- */
- public void _daload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DALOAD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dastore(int)
- */
- public void _dastore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dcmpg(int)
- */
- public void _dcmpg(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DCMPG]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dcmpl(int)
- */
- public void _dcmpl(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DCMPL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dconst_0(int)
- */
- public void _dconst_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DCONST_0]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dconst_1(int)
- */
- public void _dconst_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DCONST_1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ddiv(int)
- */
- public void _ddiv(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DDIV]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dload_0(int)
- */
- public void _dload_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load,new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DLOAD_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dload_1(int)
- */
- public void _dload_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DLOAD_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dload_2(int)
- */
- public void _dload_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DLOAD_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dload_3(int)
- */
- public void _dload_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DLOAD_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dload(int, int)
- */
- public void _dload(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DLOAD],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dmul(int)
- */
- public void _dmul(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DMUL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dneg(int)
- */
- public void _dneg(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DNEG]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_drem(int)
- */
- public void _drem(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DREM]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dreturn(int)
- */
- public void _dreturn(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DRETURN]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dstore_0(int)
- */
- public void _dstore_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dstore_1(int)
- */
- public void _dstore_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dstore_2(int)
- */
- public void _dstore_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dstore_3(int)
- */
- public void _dstore_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dstore(int,int)
- */
- public void _dstore(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSTORE],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dsub(int)
- */
- public void _dsub(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DSUB]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dup_x1(int)
- */
- public void _dup_x1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DUP_X1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dup_x2(int)
- */
- public void _dup_x2(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DUP_X2]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dup(int)
- */
- public void _dup(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DUP]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dup2_x1(int)
- */
- public void _dup2_x1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DUP2_X1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dup2_x2(int)
- */
- public void _dup2_x2(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DUP2_X2]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_dup2(int)
- */
- public void _dup2(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.DUP2]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_f2d(int)
- */
- public void _f2d(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.F2D]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_f2i(int)
- */
- public void _f2i(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.F2I]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_f2l(int)
- */
- public void _f2l(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.F2L]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fadd(int)
- */
- public void _fadd(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FADD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_faload(int)
- */
- public void _faload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FALOAD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fastore(int)
- */
- public void _fastore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fcmpg(int)
- */
- public void _fcmpg(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FCMPG]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fcmpl(int)
- */
- public void _fcmpl(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FCMPL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fconst_0(int)
- */
- public void _fconst_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FCONST_0]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fconst_1(int)
- */
- public void _fconst_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FCONST_1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fconst_2(int)
- */
- public void _fconst_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FCONST_2]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fdiv(int)
- */
- public void _fdiv(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FDIV]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fload_0(int)
- */
- public void _fload_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fload_1(int)
- */
- public void _fload_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fload_2(int)
- */
- public void _fload_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fload_3(int)
- */
- public void _fload_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fload(int, int)
- */
- public void _fload(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fmul(int)
- */
- public void _fmul(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FMUL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fneg(int)
- */
- public void _fneg(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FNEG]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_frem(int)
- */
- public void _frem(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FREM]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_freturn(int)
- */
- public void _freturn(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FRETURN]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fstore_0(int)
- */
- public void _fstore_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store,new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fstore_1(int)
- */
- public void _fstore_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fstore_2(int)
- */
- public void _fstore_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fstore_3(int)
- */
- public void _fstore_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fstore(int, int)
- */
- public void _fstore(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSTORE],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_fsub(int)
- */
- public void _fsub(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FSUB]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_getfield(int, int, IConstantPoolEntry)
- */
- public void _getfield(int pc, int index, IConstantPoolEntry constantFieldref) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_getfield, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.GETFIELD],
- Integer.toString(index),
- returnDeclaringClassName(constantFieldref),
- new String(constantFieldref.getFieldName()),
- returnClassName(Signature.toCharArray(constantFieldref.getFieldDescriptor()))
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_getstatic(int, int, IConstantPoolEntry)
- */
- public void _getstatic(int pc, int index, IConstantPoolEntry constantFieldref) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_getstatic, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.GETSTATIC],
- Integer.toString(index),
- returnDeclaringClassName(constantFieldref),
- new String(constantFieldref.getFieldName()),
- returnClassName(Signature.toCharArray(constantFieldref.getFieldDescriptor()))
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_goto_w(int, int)
- */
- public void _goto_w(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.GOTO_W])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_goto(int, int)
- */
- public void _goto(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.GOTO])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_i2b(int)
- */
- public void _i2b(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.I2B]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_i2c(int)
- */
- public void _i2c(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.I2C]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_i2d(int)
- */
- public void _i2d(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.I2D]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_i2f(int)
- */
- public void _i2f(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.I2F]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_i2l(int)
- */
- public void _i2l(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.I2L]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_i2s(int)
- */
- public void _i2s(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.I2S]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iadd(int)
- */
- public void _iadd(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IADD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iaload(int)
- */
- public void _iaload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IALOAD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iand(int)
- */
- public void _iand(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IAND]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iastore(int)
- */
- public void _iastore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_acmpeq(int, int)
- */
- public void _if_acmpeq(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ACMPEQ])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_acmpne(int, int)
- */
- public void _if_acmpne(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ACMPNE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_icmpeq(int, int)
- */
- public void _if_icmpeq(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ICMPEQ])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_icmpge(int, int)
- */
- public void _if_icmpge(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ICMPGE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_icmpgt(int, int)
- */
- public void _if_icmpgt(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ICMPGT])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_icmple(int, int)
- */
- public void _if_icmple(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ICMPLE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_icmplt(int, int)
- */
- public void _if_icmplt(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ICMPLT])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_if_icmpne(int, int)
- */
- public void _if_icmpne(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IF_ICMPNE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_0(int)
- */
- public void _iconst_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_0]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_1(int)
- */
- public void _iconst_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_2(int)
- */
- public void _iconst_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_2]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_3(int)
- */
- public void _iconst_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_3]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_4(int)
- */
- public void _iconst_4(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_4]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_5(int)
- */
- public void _iconst_5(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_5]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iconst_m1(int)
- */
- public void _iconst_m1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ICONST_M1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_idiv(int)
- */
- public void _idiv(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IDIV]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifeq(int, int)
- */
- public void _ifeq(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFEQ])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifge(int, int)
- */
- public void _ifge(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFGE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifgt(int, int)
- */
- public void _ifgt(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFGT])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifle(int, int)
- */
- public void _ifle(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFLE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iflt(int, int)
- */
- public void _iflt(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFLT])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifne(int, int)
- */
- public void _ifne(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFNE])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifnonnull(int, int)
- */
- public void _ifnonnull(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFNONNULL])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ifnull(int, int)
- */
- public void _ifnull(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IFNULL])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iinc(int, int, int)
- */
- public void _iinc(int pc, int index, int _const) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_iinc, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IINC],
- Integer.toString(index),
- Integer.toString(_const),
- getLocalVariableName(pc, index, false)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iload_0(int)
- */
- public void _iload_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ILOAD_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iload_1(int)
- */
- public void _iload_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ILOAD_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iload_2(int)
- */
- public void _iload_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ILOAD_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iload_3(int)
- */
- public void _iload_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ILOAD_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iload(int, int)
- */
- public void _iload(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_load, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ILOAD],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_imul(int)
- */
- public void _imul(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IMUL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ineg(int)
- */
- public void _ineg(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INEG]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_instanceof(int, int, IConstantPoolEntry)
- */
- public void _instanceof(int pc, int index, IConstantPoolEntry constantClass) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_instanceof, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INSTANCEOF],
- Integer.toString(index),
- returnConstantClassName(constantClass)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_invokeinterface(int, int, byte, IConstantPoolEntry)
- */
- public void _invokeinterface(
- int pc,
- int index,
- byte nargs,
- IConstantPoolEntry constantInterfaceMethodref) {
-
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_invokeinterface, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKEINTERFACE],
- Integer.toString(index),
- Integer.toString(nargs),
- Util.toString(
- constantInterfaceMethodref.getClassName(),
- constantInterfaceMethodref.getMethodName(),
- constantInterfaceMethodref.getMethodDescriptor(),
- true,
- isCompact())
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_invokespecial(int, int, IConstantPoolEntry)
- */
- public void _invokespecial(int pc, int index, IConstantPoolEntry constantMethodref) {
- dumpPcNumber(pc);
- final String signature = returnMethodSignature(constantMethodref);
- buffer.append(Messages.bind(Messages.classformat_invokespecial, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKESPECIAL],
- Integer.toString(index),
- signature
- }));
- writeNewLine();
- }
- /**
- * @see IBytecodeVisitor#_invokestatic(int, int, IConstantPoolEntry)
- */
- public void _invokestatic(int pc, int index, IConstantPoolEntry constantMethodref) {
- dumpPcNumber(pc);
- final String signature = returnMethodSignature(constantMethodref);
- buffer.append(Messages.bind(Messages.classformat_invokestatic, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKESTATIC],
- Integer.toString(index),
- signature
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_invokevirtual(int, int, IConstantPoolEntry)
- */
- public void _invokevirtual(int pc, int index, IConstantPoolEntry constantMethodref) {
- dumpPcNumber(pc);
- final String signature = returnMethodSignature(constantMethodref);
- buffer.append(Messages.bind(Messages.classformat_invokevirtual,new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKEVIRTUAL],
- Integer.toString(index),
- signature
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ior(int)
- */
- public void _ior(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IOR]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_irem(int)
- */
- public void _irem(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IREM]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ireturn(int)
- */
- public void _ireturn(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IRETURN]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ishl(int)
- */
- public void _ishl(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISHL]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ishr(int)
- */
- public void _ishr(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISHR]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_istore_0(int)
- */
- public void _istore_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISTORE_0],
- getLocalVariableName(pc, 0)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_istore_1(int)
- */
- public void _istore_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISTORE_1],
- getLocalVariableName(pc, 1)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_istore_2(int)
- */
- public void _istore_2(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISTORE_2],
- getLocalVariableName(pc, 2)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_istore_3(int)
- */
- public void _istore_3(int pc) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISTORE_3],
- getLocalVariableName(pc, 3)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_istore(int, int)
- */
- public void _istore(int pc, int index) {
- dumpPcNumber(pc);
- buffer.append(Messages.bind(Messages.classformat_store, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISTORE],
- getLocalVariableName(pc, index, true)
- }));
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_isub(int)
- */
- public void _isub(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.ISUB]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_iushr(int)
- */
- public void _iushr(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IUSHR]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ixor(int)
- */
- public void _ixor(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.IXOR]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_jsr_w(int, int)
- */
- public void _jsr_w(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.JSR_W])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_jsr(int, int)
- */
- public void _jsr(int pc, int branchOffset) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.JSR])
- .append(Messages.disassembler_space)
- .append(branchOffset + pc);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_l2d(int)
- */
- public void _l2d(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.L2D]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_l2f(int)
- */
- public void _l2f(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.L2F]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_l2i(int)
- */
- public void _l2i(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.L2I]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ladd(int)
- */
- public void _ladd(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LADD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_laload(int)
- */
- public void _laload(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LALOAD]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_land(int)
- */
- public void _land(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LAND]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_lastore(int)
- */
- public void _lastore(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LASTORE]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_lcmp(int)
- */
- public void _lcmp(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LCMP]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_lconst_0(int)
- */
- public void _lconst_0(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LCONST_0]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_lconst_1(int)
- */
- public void _lconst_1(int pc) {
- dumpPcNumber(pc);
- buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LCONST_1]);
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ldc_w(int, int, IConstantPoolEntry)
- */
- public void _ldc_w(int pc, int index, IConstantPoolEntry constantPoolEntry) {
- dumpPcNumber(pc);
- switch (constantPoolEntry.getKind()) {
- case IConstantPoolConstant.CONSTANT_Float :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_float, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W],
- Integer.toString(index),
- Float.toString(constantPoolEntry.getFloatValue())
- }));
- break;
- case IConstantPoolConstant.CONSTANT_Integer :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_integer, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W],
- Integer.toString(index),
- Integer.toString(constantPoolEntry.getIntegerValue())
- }));
- break;
- case IConstantPoolConstant.CONSTANT_String :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_string, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W],
- Integer.toString(index),
- Disassembler.escapeString(constantPoolEntry.getStringValue())
- }));
- break;
- case IConstantPoolConstant.CONSTANT_Class :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_class, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC_W],
- Integer.toString(index),
- returnConstantClassName(constantPoolEntry)
- }));
- }
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ldc(int, int, IConstantPoolEntry)
- */
- public void _ldc(int pc, int index, IConstantPoolEntry constantPoolEntry) {
- dumpPcNumber(pc);
- switch (constantPoolEntry.getKind()) {
- case IConstantPoolConstant.CONSTANT_Float :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_float, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC],
- Integer.toString(index),
- Float.toString(constantPoolEntry.getFloatValue())
- }));
- break;
- case IConstantPoolConstant.CONSTANT_Integer :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_integer, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC],
- Integer.toString(index),
- Integer.toString(constantPoolEntry.getIntegerValue())
- }));
- break;
- case IConstantPoolConstant.CONSTANT_String :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_string, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC],
- Integer.toString(index),
- Disassembler.escapeString(constantPoolEntry.getStringValue())
- }));
- break;
- case IConstantPoolConstant.CONSTANT_Class :
- buffer.append(Messages.bind(Messages.classformat_ldc_w_class, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.LDC],
- Integer.toString(index),
- returnConstantClassName(constantPoolEntry)
- }));
- }
- writeNewLine();
- }
-
- /**
- * @see IBytecodeVisitor#_ldc2_w(int, int, IConstantPoolEntry)
- */
- public void _ldc2_w(int pc, int index, IConstantPoolEntry constantPoolEntry) {
- dumpPcNumber(pc);
- switch (constantPoolEntry.getKind()) {
- case IConstantPoolConstant.CONSTANT_Long :
- buffer.append(Messages.bind(Messages.classformat_ldc2_w_long, new String[] {
- OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.