org.eigenbase.lurql
Class LurqlPathSpec

java.lang.Object
  extended by org.eigenbase.lurql.LurqlQueryNode
      extended by org.eigenbase.lurql.LurqlPathSpec

public class LurqlPathSpec
extends LurqlQueryNode

LurqlPathSpec represents the parsed form of a path specification in a LURQL query.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/lurql/LurqlPathSpec.java#1 $
Author:
John V. Sichi

Field Summary
private  List<LurqlQueryNode> branches
           
private  boolean gatherParent
           
private  LurqlPathSpec gatherThen
           
 
Constructor Summary
LurqlPathSpec(List<LurqlQueryNode> branches, LurqlPathSpec gatherThen, boolean gatherParent)
           
 
Method Summary
 List<LurqlQueryNode> getBranches()
           
 LurqlPathSpec getGatherThenSpec()
           
 boolean isGather()
           
 boolean isGatherParent()
           
 void unparse(PrintWriter pw)
          Converts this node to text.
 
Methods inherited from class org.eigenbase.lurql.LurqlQueryNode
toString, unparseFilterList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

branches

private final List<LurqlQueryNode> branches

gatherThen

private final LurqlPathSpec gatherThen

gatherParent

private final boolean gatherParent
Constructor Detail

LurqlPathSpec

public LurqlPathSpec(List<LurqlQueryNode> branches,
                     LurqlPathSpec gatherThen,
                     boolean gatherParent)
Method Detail

getBranches

public List<LurqlQueryNode> getBranches()

isGather

public boolean isGather()

getGatherThenSpec

public LurqlPathSpec getGatherThenSpec()

isGatherParent

public boolean isGatherParent()

unparse

public void unparse(PrintWriter pw)
Description copied from class: LurqlQueryNode
Converts this node to text.

Specified by:
unparse in class LurqlQueryNode
Parameters:
pw - the PrintWriter on which to unparse; must have an underlying StackWriter to interpret indentation