Package net.sf.saxon.expr.parser
Class Token
java.lang.Object
net.sf.saxon.expr.parser.Token
- Direct Known Subclasses:
Token.ComplexToken,Token.DirectCommentConstructor,Token.DirectProcessingInstructionConstructor,Token.NameToken,Token.NumericLiteral,Token.Pragma,Token.StringLiteral,Token.Wildcard
This class holds static constants and methods defining the lexical tokens used in
XPath and XQuery, and associated keywords.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA "complex token" is used to represent constructs like element constructors and string templates that contain embedded expressions within arbitrary character content..static classstatic classstatic classstatic classstatic classToken representing a numeric literal.static classToken representing a pragma, that is the construct `(#...#)` that acts as the first part of an extension expression.static classstatic classToken representing a string literal.static classstatic classToken representing a partial wildcard: prefix:*, Q{uri}*, or *:suffix -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final TokenPseudo-token representing the end of the expressionstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final Tokenstatic final TokenPseudo-token representing the start of the expressionstatic final Token -
Constructor Summary
ConstructorsConstructorDescriptionCreate a token that does not represent an operator symbolToken(String display, OperatorSymbol operator) Create a token that represents an operator symbol -
Method Summary
-
Field Details
-
EOF
Pseudo-token representing the end of the expression -
VBAR
-
SLASH
-
AT
-
LSQB
-
RSQB
-
LPAREN
-
RPAREN
-
LCURLY
-
RCURLY
-
EQUALS
-
COMMA
-
SLASH_SLASH
-
GT
-
LT
-
GE
-
LE
-
NE
-
PLUS
-
MINUS
-
MATH_MULT
-
MATH_DIVIDE
-
MAPPING_ARROW
-
DOLLAR
-
CONCAT
-
COLON
-
FAT_ARROW
-
THIN_ARROW
-
METHOD_CALL
-
BANG
-
COLON_COLON
-
HASH
-
QMARK
-
QMARK_LSQB
-
TILDE
-
COLON_EQUALS
-
PERCENT
-
DOT
-
DOT_DOT
-
STAR
-
FOLLOWS
-
PRECEDES
-
SEMICOLON
-
UNKNOWN
Pseudo-token representing the start of the expression
-
-
Constructor Details
-
Token
Create a token that does not represent an operator symbol- Parameters:
display- the display form of the token for diagnostics
-
Token
Create a token that represents an operator symbol- Parameters:
display- the display form of the token for diagnosticsoperator- the operator represented by this token
-
-
Method Details