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: import java.util.List;
09:
10: import info.aduna.collections.CastingList;
11:
12: public class ASTFunctionCall extends ASTValueExpr {
13:
14: public ASTFunctionCall(int id) {
15: super (id);
16: }
17:
18: public ASTFunctionCall(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 ASTValue getURI() {
29: return (ASTValue) children.get(0);
30: }
31:
32: public List<ASTValueExpr> getArgList() {
33: return new CastingList<ASTValueExpr>(children.subList(1,
34: children.size()));
35: }
36: }
|