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/CheckCastOperator.java

21 lines
539 B

package jode;
import sun.tools.java.Type;
public class CheckCastOperator extends SimpleOperator {
public CheckCastOperator(int addr, int length, Type type) {
super(addr,length, type, 0, 1);
operandTypes[0] = UnknownType.tSubClass(type);
}
public int getPriority() {
return 700;
}
public int getOperandPriority(int i) {
return getPriority();
}
public String toString(CodeAnalyzer ca, String[] operands) {
return "("+ca.getTypeString(type) + ")" + operands[0];
}
}