Mirror of the JODE repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jode/jode/jode/expr/CompareToIntOperator.java

27 lines
685 B

package jode;
import sun.tools.java.Type;
public class CompareToIntOperator extends BinaryOperator {
public CompareToIntOperator(int addr, int length, Type type, int op) {
super(addr,length, Type.tInt, op);
operandType = type;
}
public int getPriority() {
switch (getOperator()) {
case 25:
case 26:
return 500;
case 27:
case 28:
case 29:
case 30:
return 550;
}
throw new RuntimeException("Illegal operator");
}
public String toString(CodeAnalyzer ca, String[] operands) {
return operands[0] + " "+opString[operator]+" "+operands[1];
}
}