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