01: /* Generated By:JJTree: Do not edit this line. ASTMath.java */
02:
03: package org.openrdf.query.parser.sparql.ast;
04:
05: import org.openrdf.query.algebra.MathExpr.MathOp;
06:
07: public class ASTMath extends SimpleNode {
08:
09: private MathOp operator;
10:
11: public ASTMath(int id) {
12: super (id);
13: }
14:
15: public ASTMath(SyntaxTreeBuilder p, int id) {
16: super (p, id);
17: }
18:
19: @Override
20: public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
21: Object data) throws VisitorException {
22: return visitor.visit(this , data);
23: }
24:
25: public MathOp getOperator() {
26: return operator;
27: }
28:
29: public void setOperator(MathOp operator) {
30: this .operator = operator;
31: }
32:
33: @Override
34: public String toString() {
35: return super .toString() + " (" + operator + ")";
36: }
37: }
|