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 ASTBasicPathExprTail extends ASTPathExprTail {
09:
10: public ASTBasicPathExprTail(int id) {
11: super (id);
12: }
13:
14: public ASTBasicPathExprTail(SyntaxTreeBuilder p, int id) {
15: super (p, id);
16: }
17:
18: @Override
19: public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
20: Object data) throws VisitorException {
21: return visitor.visit(this , data);
22: }
23:
24: public ASTEdge getEdge() {
25: return (ASTEdge) children.get(0);
26: }
27:
28: public ASTNode getNode() {
29: return (ASTNode) children.get(1);
30: }
31:
32: @Override
33: public ASTPathExprTail getNextTail() {
34: if (children.size() >= 3) {
35: return (ASTPathExprTail) children.get(2);
36: }
37:
38: return null;
39: }
40: }
|