01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.parser.serql.ast;
07:
08: import org.openrdf.query.algebra.Compare.CompareOp;
09:
10: public class ASTCompOperator extends SimpleNode {
11:
12: private CompareOp value;
13:
14: public ASTCompOperator(int id) {
15: super (id);
16: }
17:
18: public ASTCompOperator(SyntaxTreeBuilder p, int id) {
19: super (p, id);
20: }
21:
22: @Override
23: public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
24: Object data) throws VisitorException {
25: return visitor.visit(this , data);
26: }
27:
28: public CompareOp getValue() {
29: return value;
30: }
31:
32: public void setValue(CompareOp operator) {
33: this.value = operator;
34: }
35: }
|