From e042667bcfa18794b2169d734836035ec955f262 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 14 Apr 1999 19:54:55 +0000 Subject: [PATCH] dumpExpression Types moved to jode.type git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@595 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/ArrayLengthOperator.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jode/jode/expr/ArrayLengthOperator.java b/jode/jode/expr/ArrayLengthOperator.java index 9062ca5..eca6a55 100644 --- a/jode/jode/expr/ArrayLengthOperator.java +++ b/jode/jode/expr/ArrayLengthOperator.java @@ -18,7 +18,8 @@ */ package jode.expr; -import jode.Type; +import jode.type.Type; +import jode.decompiler.TabbedPrintWriter; public class ArrayLengthOperator extends Operator { @@ -37,10 +38,6 @@ public class ArrayLengthOperator extends Operator { return 1; } - public int getOperandPriority(int i) { - return 900; - } - public Type getOperandType(int i) { return arrayType; } @@ -49,7 +46,10 @@ public class ArrayLengthOperator extends Operator { arrayType = arrayType.intersection(types[0]); } - public String toString(String[] operands) { - return operands[0] + ".length"; + public void dumpExpression(TabbedPrintWriter writer, + Expression[] operands) + throws java.io.IOException { + operands[0].dumpExpression(writer, 900); + writer.print(".length"); } }