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.
24 lines
464 B
24 lines
464 B
package jode;
|
|
import sun.tools.java.Type;
|
|
|
|
public class PopOperator extends SimpleOperator {
|
|
int count;
|
|
|
|
public PopOperator(int count) {
|
|
super(Type.tVoid, 0, 1);
|
|
operandTypes[0] = MyType.tUnknown;
|
|
this.count = count;
|
|
}
|
|
|
|
public int getPriority() {
|
|
return 0;
|
|
}
|
|
|
|
public int getOperandPriority(int i) {
|
|
return 0;
|
|
}
|
|
|
|
public String toString(String[] operands) {
|
|
return operands[0];
|
|
}
|
|
}
|
|
|