01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.parser.serql.ast;
07:
08: public class ASTBound extends ASTBooleanExpr {
09:
10: public ASTBound() {
11: this (SyntaxTreeBuilderTreeConstants.JJTBOUND);
12: }
13:
14: public ASTBound(ASTValueExpr operand) {
15: this ();
16: setOperand(operand);
17: }
18:
19: public ASTBound(int id) {
20: super (id);
21: }
22:
23: public ASTBound(SyntaxTreeBuilder p, int id) {
24: super (p, id);
25: }
26:
27: @Override
28: public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
29: Object data) throws VisitorException {
30: return visitor.visit(this , data);
31: }
32:
33: public ASTVar getOperand() {
34: return (ASTVar) children.get(0);
35: }
36:
37: public void setOperand(ASTValueExpr operand) {
38: jjtAddChild(operand, 0);
39: }
40: }
|