org.openrdf.query.parser.serql.ast
Class ASTOptPathExpr

java.lang.Object
  extended by org.openrdf.query.parser.serql.ast.SimpleNode
      extended by org.openrdf.query.parser.serql.ast.ASTPathExpr
          extended by org.openrdf.query.parser.serql.ast.ASTOptPathExpr
All Implemented Interfaces:
Node

public class ASTOptPathExpr
extends ASTPathExpr


Field Summary
 
Fields inherited from class org.openrdf.query.parser.serql.ast.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTOptPathExpr(int id)
           
ASTOptPathExpr(SyntaxTreeBuilder p, int id)
           
 
Method Summary
 ASTPathExpr getPathExpr()
           
 ASTWhere getWhereClause()
          Returns the where clause on the optional path expression, if present.
 boolean hasConstraint()
          Checks if this optional path expression has a constraint.
 java.lang.Object jjtAccept(SyntaxTreeBuilderVisitor visitor, java.lang.Object data)
          Accept the visitor.
 
Methods inherited from class org.openrdf.query.parser.serql.ast.SimpleNode
childrenAccept, dump, dump, jjtAddChild, jjtAppendChild, jjtClose, jjtGetChild, jjtGetChild, jjtGetChildren, jjtGetChildren, jjtGetNumChildren, jjtGetParent, jjtInsertChild, jjtOpen, jjtReplaceChild, jjtReplaceWith, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTOptPathExpr

public ASTOptPathExpr(int id)

ASTOptPathExpr

public ASTOptPathExpr(SyntaxTreeBuilder p,
                      int id)
Method Detail

jjtAccept

public java.lang.Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
                                  java.lang.Object data)
                           throws VisitorException
Description copied from class: SimpleNode
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode
Throws:
VisitorException

getPathExpr

public ASTPathExpr getPathExpr()

hasConstraint

public boolean hasConstraint()
Checks if this optional path expression has a constraint.


getWhereClause

public ASTWhere getWhereClause()
Returns the where clause on the optional path expression, if present.

Returns:
The where clause, or null if no where clause was specified.


Copyright © 2001-2010 Aduna. All Rights Reserved.