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: import java.util.List;
09:
10: import info.aduna.collections.CastingList;
11:
12: public class ASTOr extends ASTBooleanExpr {
13:
14: public ASTOr(int id) {
15: super (id);
16: }
17:
18: public ASTOr(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 List<ASTBooleanExpr> getOperandList() {
29: return new CastingList<ASTBooleanExpr>(children);
30: }
31: }
|