dumpExpression

Types moved to jode.type


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@595 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent fad685bf51
commit e042667bcf
  1. 14
      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");
}
}

Loading…
Cancel
Save