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
stable
jochen 26 years ago
parent e042667bcf
commit a270483b87
  1. 18
      jode/jode/expr/ArrayLoadOperator.java

@ -18,8 +18,9 @@
*/ */
package jode.expr; package jode.expr;
import jode.Type; import jode.type.Type;
import jode.ArrayType; import jode.type.ArrayType;
import jode.decompiler.TabbedPrintWriter;
public class ArrayLoadOperator extends SimpleOperator { public class ArrayLoadOperator extends SimpleOperator {
String value; String value;
@ -34,10 +35,6 @@ public class ArrayLoadOperator extends SimpleOperator {
return 950; return 950;
} }
public int getOperandPriority(int i) {
return (i==0)?950:0;
}
/** /**
* Sets the return type of this operator. * 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]); throw new jode.AssertError("No Array type: "+operandTypes[0]);
} }
public String toString(String[] operands) { public void dumpExpression(TabbedPrintWriter writer,
return operands[0]+"["+operands[1]+"]"; Expression[] operands)
throws java.io.IOException {
operands[0].dumpExpression(writer, 950);
writer.print("[");
operands[1].dumpExpression(writer, 0);
writer.print("]");
} }
} }

Loading…
Cancel
Save