01: package org.mvel.ast;
02:
03: public class OperatorNode extends ASTNode {
04: private Integer operator;
05:
06: public OperatorNode(Integer operator) {
07: this .literal = this .operator = operator;
08: }
09:
10: public boolean isOperator() {
11: return true;
12: }
13:
14: public boolean isOperator(Integer operator) {
15: return operator.equals(this .operator);
16: }
17:
18: public Integer getOperator() {
19: return operator;
20: }
21: }
|