cbc/net/loveruby/cflat/ast/UnaryArithmeticOpNode.java

23 lines
446 B
Java

package net.loveruby.cflat.ast;
public class UnaryArithmeticOpNode extends UnaryOpNode {
protected long amount;
public UnaryArithmeticOpNode(String op, ExprNode expr) {
super(op, expr);
amount = 1;
}
public void setExpr(ExprNode expr) {
this.expr = expr;
}
public long amount() {
return this.amount;
}
public void setAmount(long amount) {
this.amount = amount;
}
}