org.apache.jackrabbit.spi.commons.query.xpath
Class SimpleNode

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.xpath.SimpleNode
All Implemented Interfaces:
org.apache.jackrabbit.spi.commons.query.xpath.Node

public class SimpleNode
extends Object
implements org.apache.jackrabbit.spi.commons.query.xpath.Node

Implements a JavaCC Node interface. This Class was initially created by JavaCC and then adapted for our needs.


Field Summary
protected  org.apache.jackrabbit.spi.commons.query.xpath.Node[] children
           
protected  int id
           
protected  String m_value
           
protected  org.apache.jackrabbit.spi.commons.query.xpath.Node parent
           
protected  org.apache.jackrabbit.spi.commons.query.xpath.XPath parser
           
 
Constructor Summary
SimpleNode(int i)
           
SimpleNode(org.apache.jackrabbit.spi.commons.query.xpath.XPath p, int i)
           
 
Method Summary
 Object childrenAccept(org.apache.jackrabbit.spi.commons.query.xpath.XPathVisitor visitor, Object data)
          Accept the visitor
 void dump(String prefix)
           
 void dump(String prefix, PrintStream ps)
           
 int getId()
           
 String getValue()
           
 Object jjtAccept(org.apache.jackrabbit.spi.commons.query.xpath.XPathVisitor visitor, Object data)
          Accept the visitor
 void jjtAddChild(org.apache.jackrabbit.spi.commons.query.xpath.Node n, int i)
           
 void jjtClose()
           
static org.apache.jackrabbit.spi.commons.query.xpath.Node jjtCreate(org.apache.jackrabbit.spi.commons.query.xpath.XPath p, int id)
           
 org.apache.jackrabbit.spi.commons.query.xpath.Node jjtGetChild(int i)
           
 int jjtGetNumChildren()
           
 org.apache.jackrabbit.spi.commons.query.xpath.Node jjtGetParent()
           
 void jjtOpen()
           
 void jjtSetParent(org.apache.jackrabbit.spi.commons.query.xpath.Node n)
           
 void printValue(PrintStream ps)
           
 void processToken(org.apache.jackrabbit.spi.commons.query.xpath.Token t)
           
 String toString()
           
 String toString(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected org.apache.jackrabbit.spi.commons.query.xpath.Node parent

children

protected org.apache.jackrabbit.spi.commons.query.xpath.Node[] children

id

protected int id

parser

protected org.apache.jackrabbit.spi.commons.query.xpath.XPath parser

m_value

protected String m_value
Constructor Detail

SimpleNode

public SimpleNode(int i)

SimpleNode

public SimpleNode(org.apache.jackrabbit.spi.commons.query.xpath.XPath p,
                  int i)
Method Detail

jjtCreate

public static org.apache.jackrabbit.spi.commons.query.xpath.Node jjtCreate(org.apache.jackrabbit.spi.commons.query.xpath.XPath p,
                                                                           int id)

jjtOpen

public void jjtOpen()
Specified by:
jjtOpen in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtClose

public void jjtClose()
Specified by:
jjtClose in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtSetParent

public void jjtSetParent(org.apache.jackrabbit.spi.commons.query.xpath.Node n)
Specified by:
jjtSetParent in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtGetParent

public org.apache.jackrabbit.spi.commons.query.xpath.Node jjtGetParent()
Specified by:
jjtGetParent in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtAddChild

public void jjtAddChild(org.apache.jackrabbit.spi.commons.query.xpath.Node n,
                        int i)
Specified by:
jjtAddChild in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtGetChild

public org.apache.jackrabbit.spi.commons.query.xpath.Node jjtGetChild(int i)
Specified by:
jjtGetChild in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtGetNumChildren

public int jjtGetNumChildren()
Specified by:
jjtGetNumChildren in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

jjtAccept

public Object jjtAccept(org.apache.jackrabbit.spi.commons.query.xpath.XPathVisitor visitor,
                        Object data)
Accept the visitor. *

Specified by:
jjtAccept in interface org.apache.jackrabbit.spi.commons.query.xpath.Node

childrenAccept

public Object childrenAccept(org.apache.jackrabbit.spi.commons.query.xpath.XPathVisitor visitor,
                             Object data)
Accept the visitor. *


toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(String prefix)

dump

public void dump(String prefix)

dump

public void dump(String prefix,
                 PrintStream ps)

processToken

public void processToken(org.apache.jackrabbit.spi.commons.query.xpath.Token t)

printValue

public void printValue(PrintStream ps)

getId

public int getId()

getValue

public String getValue()


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.