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

24 lines
554 B

package jode;
import sun.tools.java.Type;
public class CheckCastOperator extends SimpleOperator {
String typeString;
public CheckCastOperator(Type type, String typeString) {
super(type, 0, 1);
this.typeString = typeString;
operandTypes[0] = MyType.tSuperType(type);
}
public int getPriority() {
return 700;
}
public int getOperandPriority(int i) {
return getPriority();
}
public String toString(String[] operands) {
return "(" + typeString + ")" + operands[0];
}
}