|
|
@ -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("]"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|