01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.parser.serql.ast;
07:
08: public class ASTNot extends ASTBooleanExpr {
09:
10: public ASTNot() {
11: this (SyntaxTreeBuilderTreeConstants.JJTNOT);
12: }
13:
14: public ASTNot(ASTBooleanExpr operand) {
15: this ();
16: setOperand(operand);
17: }
18:
19: public ASTNot(int id) {
20: super (id);
21: }
22:
23: public ASTNot(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 ASTBooleanExpr getOperand() {
34: return (ASTBooleanExpr) children.get(0);
35: }
36:
37: public void setOperand(ASTBooleanExpr operand) {
38: jjtAddChild(operand, 0);
39: }
40: }
|