com.jclark.xsl.expr

Class ExprTokenizer

class ExprTokenizer extends Object

lexical analyser for XPath 1.0

See Also: http://www.w3c.org/TR/xpath

Field Summary
intcurrentToken
StringcurrentTokenValue
static intTOK_AND
static intTOK_AT
static intTOK_AXIS
static intTOK_CNAME_LPAR
static intTOK_COMMA
static intTOK_COMMENT_LPAR
static intTOK_DIV
static intTOK_DOT
static intTOK_DOT_DOT
static intTOK_EOF
static intTOK_EQUALS
static intTOK_FUNCTION_LPAR
static intTOK_GT
static intTOK_GTE
static intTOK_LITERAL
static intTOK_LPAR
static intTOK_LSQB
static intTOK_LT
static intTOK_LTE
static intTOK_MINUS
static intTOK_MOD
static intTOK_MULTIPLY
static intTOK_NAME_COLON_STAR
static intTOK_NODE_LPAR
static intTOK_NOT_EQUALS
static intTOK_NUMBER
static intTOK_OR
static intTOK_PLUS
static intTOK_PROCESSING_INSTRUCTION_LPAR
static intTOK_QNAME
static intTOK_RPAR
static intTOK_RSQB
static intTOK_SLASH
static intTOK_SLASH_SLASH
static intTOK_STAR
static intTOK_TEXT_LPAR
static intTOK_VARIABLE_REF
static intTOK_VBAR
Constructor Summary
ExprTokenizer(String s)
construct with the string to be tokenized
Method Summary
voidnext()
lexes the next token, leaving the token type in currentToken, and the value (if applicable) in tokenValue

Field Detail

currentToken

int currentToken

currentTokenValue

String currentTokenValue

TOK_AND

static final int TOK_AND

TOK_AT

static final int TOK_AT

TOK_AXIS

static final int TOK_AXIS

TOK_CNAME_LPAR

static final int TOK_CNAME_LPAR

TOK_COMMA

static final int TOK_COMMA

TOK_COMMENT_LPAR

static final int TOK_COMMENT_LPAR

TOK_DIV

static final int TOK_DIV

TOK_DOT

static final int TOK_DOT

TOK_DOT_DOT

static final int TOK_DOT_DOT

TOK_EOF

static final int TOK_EOF

TOK_EQUALS

static final int TOK_EQUALS

TOK_FUNCTION_LPAR

static final int TOK_FUNCTION_LPAR

TOK_GT

static final int TOK_GT

TOK_GTE

static final int TOK_GTE

TOK_LITERAL

static final int TOK_LITERAL

TOK_LPAR

static final int TOK_LPAR

TOK_LSQB

static final int TOK_LSQB

TOK_LT

static final int TOK_LT

TOK_LTE

static final int TOK_LTE

TOK_MINUS

static final int TOK_MINUS

TOK_MOD

static final int TOK_MOD

TOK_MULTIPLY

static final int TOK_MULTIPLY

TOK_NAME_COLON_STAR

static final int TOK_NAME_COLON_STAR

TOK_NODE_LPAR

static final int TOK_NODE_LPAR

TOK_NOT_EQUALS

static final int TOK_NOT_EQUALS

TOK_NUMBER

static final int TOK_NUMBER

TOK_OR

static final int TOK_OR

TOK_PLUS

static final int TOK_PLUS

TOK_PROCESSING_INSTRUCTION_LPAR

static final int TOK_PROCESSING_INSTRUCTION_LPAR

TOK_QNAME

static final int TOK_QNAME

TOK_RPAR

static final int TOK_RPAR

TOK_RSQB

static final int TOK_RSQB

TOK_SLASH

static final int TOK_SLASH

TOK_SLASH_SLASH

static final int TOK_SLASH_SLASH

TOK_STAR

static final int TOK_STAR

TOK_TEXT_LPAR

static final int TOK_TEXT_LPAR

TOK_VARIABLE_REF

static final int TOK_VARIABLE_REF

TOK_VBAR

static final int TOK_VBAR

Constructor Detail

ExprTokenizer

ExprTokenizer(String s)
construct with the string to be tokenized

Method Detail

next

void next()
lexes the next token, leaving the token type in currentToken, and the value (if applicable) in tokenValue