org.jaxen.saxpath.base
Class XPathLexer

java.lang.Object
  extended byorg.jaxen.saxpath.base.XPathLexer

class XPathLexer
extends java.lang.Object


Field Summary
private  int currentPosition
           
private  int endPosition
           
private  Token previousToken
           
private  java.lang.String xpath
           
 
Constructor Summary
(package private) XPathLexer()
           
  XPathLexer(java.lang.String xpath)
           
 
Method Summary
(package private)  Token and()
           
(package private)  Token at()
           
(package private)  Token colon()
           
(package private)  Token comma()
           
(package private)  void consume()
           
(package private)  void consume(int i)
           
(package private)  int currentPosition()
           
(package private)  Token div()
           
(package private)  Token dollar()
           
(package private)  Token dots()
           
(package private)  Token doubleColon()
           
(package private)  int endPosition()
           
(package private)  Token equals()
           
(package private)  Token getPreviousToken()
           
 java.lang.String getXPath()
           
(package private)  boolean hasMoreChars()
           
(package private)  Token identifier()
           
(package private)  Token identifierOrOperatorName()
           
(package private)  boolean isIdentifierChar(char c)
           
(package private)  boolean isIdentifierStartChar(char c)
           
(package private)  char LA(int i)
           
(package private)  Token leftBracket()
           
(package private)  Token leftParen()
           
(package private)  Token literal()
           
(package private)  Token minus()
           
(package private)  Token mod()
           
 Token nextToken()
           
(package private)  Token not()
           
(package private)  Token notEquals()
           
(package private)  Token number()
           
(package private)  Token operatorName()
           
(package private)  Token or()
           
(package private)  Token pipe()
           
(package private)  Token plus()
           
(package private)  Token relationalOperator()
           
(package private)  Token rightBracket()
           
(package private)  Token rightParen()
           
(package private)  void setPreviousToken(Token previousToken)
           
(package private)  void setXPath(java.lang.String xpath)
           
(package private)  Token slashes()
           
(package private)  Token star()
           
(package private)  Token whitespace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xpath

private java.lang.String xpath

currentPosition

private int currentPosition

endPosition

private int endPosition

previousToken

private Token previousToken
Constructor Detail

XPathLexer

public XPathLexer(java.lang.String xpath)

XPathLexer

XPathLexer()
Method Detail

setXPath

void setXPath(java.lang.String xpath)

getXPath

public java.lang.String getXPath()

nextToken

public Token nextToken()

identifierOrOperatorName

Token identifierOrOperatorName()

identifier

Token identifier()

operatorName

Token operatorName()

mod

Token mod()

div

Token div()

and

Token and()

or

Token or()

number

Token number()

whitespace

Token whitespace()

comma

Token comma()

equals

Token equals()

minus

Token minus()

plus

Token plus()

dollar

Token dollar()

pipe

Token pipe()

at

Token at()

colon

Token colon()

doubleColon

Token doubleColon()

not

Token not()

notEquals

Token notEquals()

relationalOperator

Token relationalOperator()

star

Token star()

literal

Token literal()

dots

Token dots()

leftBracket

Token leftBracket()

rightBracket

Token rightBracket()

leftParen

Token leftParen()

rightParen

Token rightParen()

slashes

Token slashes()

LA

char LA(int i)

consume

void consume()

consume

void consume(int i)

currentPosition

int currentPosition()

endPosition

int endPosition()

getPreviousToken

Token getPreviousToken()

setPreviousToken

void setPreviousToken(Token previousToken)

hasMoreChars

boolean hasMoreChars()

isIdentifierChar

boolean isIdentifierChar(char c)

isIdentifierStartChar

boolean isIdentifierStartChar(char c)