com.japisoft.xpath
Class XPathParser

java.lang.Object
  |
  +--com.japisoft.xpath.XPathParser

public class XPathParser
extends java.lang.Object

Encapsulates yacc() parser functionality in a Java class for quick code development


Field Summary
static short AND
           
static short AXIS_NAME
           
static short AXIS_SEP
           
static short DIFF
           
static short DP
           
static short DS
           
static short INFE
           
static short LITERAL
           
static short NAME
           
static short NEG
           
static short NODE_TYPE
           
static short NUMBER
           
static short OR
           
static short PI
           
static short SUPE
           
static short YYERRCODE
           
 
Constructor Summary
XPathParser()
          Default constructor.
XPathParser(boolean debugMe)
          Create a parser, setting the debug to true or false.
XPathParser(java.io.Reader r)
           
 
Method Summary
 int getCurrentPos()
           
 void run()
          A default run method, used for operating this parser object in the background.
 void setXPathResolver(XPathResolver resolver)
           
 void yyerror(java.lang.String error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LITERAL

public static final short LITERAL
See Also:
Constant Field Values

AXIS_NAME

public static final short AXIS_NAME
See Also:
Constant Field Values

PI

public static final short PI
See Also:
Constant Field Values

NODE_TYPE

public static final short NODE_TYPE
See Also:
Constant Field Values

NUMBER

public static final short NUMBER
See Also:
Constant Field Values

NAME

public static final short NAME
See Also:
Constant Field Values

AXIS_SEP

public static final short AXIS_SEP
See Also:
Constant Field Values

OR

public static final short OR
See Also:
Constant Field Values

AND

public static final short AND
See Also:
Constant Field Values

SUPE

public static final short SUPE
See Also:
Constant Field Values

INFE

public static final short INFE
See Also:
Constant Field Values

DIFF

public static final short DIFF
See Also:
Constant Field Values

DS

public static final short DS
See Also:
Constant Field Values

DP

public static final short DP
See Also:
Constant Field Values

NEG

public static final short NEG
See Also:
Constant Field Values

YYERRCODE

public static final short YYERRCODE
See Also:
Constant Field Values
Constructor Detail

XPathParser

public XPathParser(java.io.Reader r)

XPathParser

public XPathParser()
Default constructor. Turn off with -Jnoconstruct .


XPathParser

public XPathParser(boolean debugMe)
Create a parser, setting the debug to true or false.

Parameters:
debugMe - true for debugging, false for no debug.
Method Detail

setXPathResolver

public void setXPathResolver(XPathResolver resolver)

getCurrentPos

public int getCurrentPos()

yyerror

public void yyerror(java.lang.String error)

run

public void run()
A default run method, used for operating this parser object in the background. It is intended for extending Thread or implementing Runnable. Turn off with -Jnorun .