mirror of https://github.com/aamine/cbc
23 lines
446 B
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;
|
|
}
|
|
}
|