From a270483b87a0688889c32b1ab47a49a9424738ff Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 14 Apr 1999 19:55:27 +0000 Subject: [PATCH] Types moved to jode.type Types moved to jode.type dumpExpression git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@596 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/ArrayLoadOperator.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/jode/jode/expr/ArrayLoadOperator.java b/jode/jode/expr/ArrayLoadOperator.java index 09ab6d4..024f425 100644 --- a/jode/jode/expr/ArrayLoadOperator.java +++ b/jode/jode/expr/ArrayLoadOperator.java @@ -18,8 +18,9 @@ */ package jode.expr; -import jode.Type; -import jode.ArrayType; +import jode.type.Type; +import jode.type.ArrayType; +import jode.decompiler.TabbedPrintWriter; public class ArrayLoadOperator extends SimpleOperator { String value; @@ -34,10 +35,6 @@ public class ArrayLoadOperator extends SimpleOperator { return 950; } - public int getOperandPriority(int i) { - return (i==0)?950:0; - } - /** * Sets the return type of this operator. */ @@ -59,7 +56,12 @@ public class ArrayLoadOperator extends SimpleOperator { throw new jode.AssertError("No Array type: "+operandTypes[0]); } - public String toString(String[] operands) { - return operands[0]+"["+operands[1]+"]"; + public void dumpExpression(TabbedPrintWriter writer, + Expression[] operands) + throws java.io.IOException { + operands[0].dumpExpression(writer, 950); + writer.print("["); + operands[1].dumpExpression(writer, 0); + writer.print("]"); } }