com.icl.saxon.expr
Class Tokenizer

java.lang.Object
  extended bycom.icl.saxon.expr.Tokenizer

final class Tokenizer
extends Object

Tokenizer for patterns. This code is copied with minor changes from James Clark's xt. See copyright notice at end of file.


Field Summary
static int AND
           
static int AT
           
static int AXIS
           
static int COMMA
           
 double currentNumericValue
           
 int currentToken
           
 String currentTokenValue
           
static int DIV
           
static int DOLLAR
           
static int DOT
           
static int DOTDOT
           
static int EOF
           
static int EQUALS
           
static int FUNCTION
           
static int GE
           
static int GT
           
static int LE
           
static int LITERAL
           
static int LPAR
           
static int LSQB
           
static int LT
           
static int MINUS
           
static int MOD
           
static int MULT
           
static int NAME
           
static int NE
           
static int NEGATE
           
static int NODETYPE
           
static int NUMBER
           
static int OR
           
 String pattern
           
static int PLUS
           
static int PREFIX
           
static int RPAR
           
static int RSQB
           
static int SLASH
           
static int SLSL
           
static int STAR
           
static String[] tokens
           
static int VBAR
           
 
Constructor Summary
(package private) Tokenizer()
           
 
Method Summary
 void next()
           
 void tokenize(String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOF

public static final int EOF
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values

LITERAL

public static final int LITERAL
See Also:
Constant Field Values

VBAR

public static final int VBAR
See Also:
Constant Field Values

SLASH

public static final int SLASH
See Also:
Constant Field Values

AT

public static final int AT
See Also:
Constant Field Values

LSQB

public static final int LSQB
See Also:
Constant Field Values

RSQB

public static final int RSQB
See Also:
Constant Field Values

LPAR

public static final int LPAR
See Also:
Constant Field Values

RPAR

public static final int RPAR
See Also:
Constant Field Values

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

DOT

public static final int DOT
See Also:
Constant Field Values

DOTDOT

public static final int DOTDOT
See Also:
Constant Field Values

STAR

public static final int STAR
See Also:
Constant Field Values

COMMA

public static final int COMMA
See Also:
Constant Field Values

SLSL

public static final int SLSL
See Also:
Constant Field Values

PREFIX

public static final int PREFIX
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values

AND

public static final int AND
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

LT

public static final int LT
See Also:
Constant Field Values

GE

public static final int GE
See Also:
Constant Field Values

LE

public static final int LE
See Also:
Constant Field Values

PLUS

public static final int PLUS
See Also:
Constant Field Values

MINUS

public static final int MINUS
See Also:
Constant Field Values

MULT

public static final int MULT
See Also:
Constant Field Values

DIV

public static final int DIV
See Also:
Constant Field Values

MOD

public static final int MOD
See Also:
Constant Field Values

DOLLAR

public static final int DOLLAR
See Also:
Constant Field Values

NODETYPE

public static final int NODETYPE
See Also:
Constant Field Values

AXIS

public static final int AXIS
See Also:
Constant Field Values

NE

public static final int NE
See Also:
Constant Field Values

NEGATE

public static final int NEGATE
See Also:
Constant Field Values

tokens

public static String[] tokens

currentToken

public int currentToken

currentTokenValue

public String currentTokenValue

currentNumericValue

public double currentNumericValue

pattern

public String pattern
Constructor Detail

Tokenizer

Tokenizer()
Method Detail

tokenize

public void tokenize(String pattern)
              throws XPathException
Throws:
XPathException

next

public void next()
          throws XPathException
Throws:
XPathException