public abstract class Token extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AFTER
"after"
|
static int |
AND
Operator "and"
|
static int |
AS
"as" (in XQuery Update rename expression)
|
static int |
ASSIGN
":=" symbol (XQuery only)
|
static int |
AT
At token, "@"
|
static int |
ATTRIBUTE_QNAME
composite token <'attribute' QNAME> (XQuery only)
|
static int |
AXIS
Token representing the name of an axis and the following "::" symbol
|
static int |
BANG
Operator "!"
|
static int |
BEFORE
"before"
|
static int |
CASE
Keyword "case"
|
static int |
CAST_AS
operator "cast as"
|
static int |
CASTABLE_AS
operator "castable as"
|
static int |
COLON
":" (XPath 3.0 maps)
|
static int |
COLONCOLON
"::" symbol
|
static int |
COLONSTAR
":*" symbol
|
static int |
COMMA
Comma token
|
static int |
CONCAT
Operator "||"
|
static int |
COPY
"copy" keyword
|
static int |
COUNT
"copy" keyword
|
static int |
DECLARE_ANNOTATED
declare %
|
static int |
DECLARE_BASEURI
"declare base-uri"
|
static int |
DECLARE_BOUNDARY_SPACE
"declare boundary-space"
|
static int |
DECLARE_CONSTRUCTION
"declare construction"
|
static int |
DECLARE_CONTEXT
"declare context"
|
static int |
DECLARE_COPY_NAMESPACES
"declare copy-namespaces"
|
static int |
DECLARE_DECIMAL_FORMAT
"declare decimal-format"
|
static int |
DECLARE_DEFAULT
"declare default"
|
static int |
DECLARE_FUNCTION
"declare function"
|
static int |
DECLARE_NAMESPACE
"declare namespace"
|
static int |
DECLARE_OPTION
"declare option"
|
static int |
DECLARE_ORDERING
"declare xmlspace"
|
static int |
DECLARE_REVALIDATION
"declare revalidation"
|
static int |
DECLARE_UPDATING
"declare updating [function]"
|
static int |
DECLARE_VARIABLE
"declare variable"
|
static int |
DEFAULT
Keyword "default"
|
static int |
DELETE_NODE
"delete node/nodes"
|
static int |
DIV
Operator "div"
|
static int |
DOLLAR
"$" symbol
|
static int |
DOT
"." symbol
|
static int |
DOTDOT
".." symbol
|
static HashMap<String,Integer> |
doubleKeywords
Lookup table for composite (two-keyword) tokens
|
static int |
ELEMENT_QNAME
composite token <'element' QNAME> (XQuery only)
|
static int |
ELSE
Keyword "else"
|
static int |
EOF
Pseudo-token representing the end of the expression
|
static int |
EQUALS
Equals token ("=")
|
static int |
EVERY
Keyword "every"
|
static int |
EXCEPT
Operator "except"
|
static int |
FEQ
operator "eq"
|
static int |
FGE
operator "ge"
|
static int |
FGT
operator "gt"
|
static int |
FIRST_INTO
"first into"
|
static int |
FLE
opeartor "le"
|
static int |
FLT
operator "lt"
|
static int |
FNE
operator "ne"
|
static int |
FOLLOWS
Operator ">>"
|
static int |
FOR
"for" keyword
|
static int |
FOR_SLIDING
"for sliding" (XQuery 3.0)
|
static int |
FOR_TUMBLING
"for tumbling" (XQuery 3.0)
|
static int |
FUNCTION
Token representing the name of a function and the following "(" symbol
|
static int |
GE
Operator ">="
|
static int |
GROUP_BY |
static int |
GT
Operator ">"
|
static int |
HASH
# symbol
|
static int |
IDIV
operator "idiv"
|
static int |
IF
Keyword "if"
|
static int |
IMPORT_MODULE
"import module"
|
static int |
IMPORT_SCHEMA
"import schema"
|
static int |
IN
Keyword "in"
|
static int |
INLINE_FUNCTION_LITERAL
Token representing a function name and the following "#" symbol
|
static int |
INSERT_NODE
"insert node/nodes"
|
static int |
INSTANCE_OF
operator "instance of"
|
static int |
INTERSECT
Operator "intersect"
|
static int |
INTO
"into"
|
static int |
IS
Operator "is"
|
static int |
KEYWORD_CURLY
composite token:
|
static int |
LAST_INTO
"last into"
|
static int |
LCURLY
"{" symbol (XQuery only)
|
static int |
LE
Operator "<="
|
static int |
LET
"let" keyword (XQuery only)
|
static int |
LPAR
Left parenthesis
|
static int |
LSQB
Left square bracket
|
static int |
LT
Operator "<"
|
static int |
MINUS
Binary minus operator
|
static int |
MOD
Operator "mod"
|
static int |
MODIFY
Keyword "modify"
|
static int |
MODULE_NAMESPACE
"module namespace"
|
static int |
MULT
Multiply operator, "*" when used in an operator context
|
static int |
NAME
Name token (a QName, in general)
|
static int |
NAMESPACE_QNAME
composite token <'namespace' QNAME> (XQuery only)
|
static int |
NE
Operator not-equals.
|
static int |
NEGATE
Unary minus sign
|
static int |
NODEKIND
Node kind, e.g.
|
static int |
NUMBER
Numeric literal
|
static int |
OR
Operator "or"
|
static int |
PERCENT
percent sign '%'
|
static int |
PI_QNAME
composite token <'pi' QNAME> (XQuery only)
|
static int |
PLUS
Operator "+"
|
static int |
PRAGMA
A token representing an XQuery pragma.
|
static int |
PRECEDES
Operator "<<"
|
static int |
PREFIX
"prefix:*" token
|
static int |
QMARK
Question mark symbol.
|
static int |
RCURLY
"}" symbol (XQuery only)
|
static int |
RENAME_NODE
"rename node"
|
static int |
REPLACE_NODE
"replace node/nodes"
|
static int |
REPLACE_VALUE
"replace value"
|
static int |
RETURN
Keyword "return"
|
static int |
RPAR
Right parenthesis
|
static int |
RSQB
Right square bracket
|
static int |
SATISFIES
Keyword "satisfies"
|
static int |
SEMICOLON
semicolon separator
|
static int |
SLASH
Forwards "/"
|
static int |
SLASH_SLASH
Double forwards slash, "//"
|
static int |
SOME
Keyword "some"
|
static int |
STAR
"*" symbol when used as a wildcard
|
static int |
STRING_LITERAL
String literal
|
static int |
SUFFIX
"*:" token
|
static int |
SWITCH
Keyword "switch" (XQuery 1.1)
|
static int |
TAG
"<" at the start of a tag (XQuery only).
|
static int |
THEN
Ketword "then"
|
static int |
TILDE
Tilde, used in XSLT patterns
|
static int |
TO
Operator "to"
|
static String[] |
tokens
The following strings are used to represent tokens in error messages
|
static int |
TREAT_AS
operator "treat as"
|
static int |
TYPESWITCH
Keyword "typeswitch"
|
static int |
UNION
"union" or "|" token
|
static int |
UNKNOWN
Pseudo-token representing the start of the expression
|
static int |
VALIDATE
Various compound symbols supporting XQuery validation expression
|
static int |
VALIDATE_LAX |
static int |
VALIDATE_STRICT |
static int |
VALIDATE_TYPE |
static int |
WHERE
Keyword "where"
|
static int |
WITH
"with"
|
static int |
XQUERY_ENCODING
"xquery encoding"
|
static int |
XQUERY_VERSION
"xquery version"
|
Modifier and Type | Method and Description |
---|---|
static int |
inverse(int operator)
Return the inverse of a relational operator, so that "a op b" can be
rewritten as "b inverse(op) a"
|
static boolean |
isOrderedOperator(int operator) |
static int |
negate(int operator)
Return the negation of a relational operator, so that "a op b" can be
rewritten as not(b op' a)
|
public static final int EOF
public static final int UNION
public static final int SLASH
public static final int AT
public static final int LSQB
public static final int LPAR
public static final int EQUALS
public static final int COMMA
public static final int SLASH_SLASH
public static final int OR
public static final int AND
public static final int GT
public static final int LT
public static final int GE
public static final int LE
public static final int PLUS
public static final int MINUS
public static final int MULT
public static final int DIV
public static final int MOD
public static final int IS
public static final int DOLLAR
public static final int NE
public static final int INTERSECT
public static final int EXCEPT
public static final int RETURN
public static final int THEN
public static final int ELSE
public static final int WHERE
public static final int TO
public static final int CONCAT
public static final int IN
public static final int SOME
public static final int EVERY
public static final int SATISFIES
public static final int FUNCTION
public static final int AXIS
public static final int IF
public static final int PRECEDES
public static final int FOLLOWS
public static final int BANG
public static final int COLONCOLON
public static final int COLONSTAR
public static final int INLINE_FUNCTION_LITERAL
public static final int HASH
public static final int INSTANCE_OF
public static final int CAST_AS
public static final int TREAT_AS
public static final int TILDE
public static final int FEQ
public static final int FNE
public static final int FGT
public static final int FLT
public static final int FGE
public static final int FLE
public static final int IDIV
public static final int CASTABLE_AS
public static final int ASSIGN
public static final int LCURLY
public static final int KEYWORD_CURLY
public static final int ELEMENT_QNAME
public static final int ATTRIBUTE_QNAME
public static final int PI_QNAME
public static final int NAMESPACE_QNAME
public static final int TYPESWITCH
public static final int SWITCH
public static final int CASE
public static final int MODIFY
public static final int NODEKIND
public static final int SUFFIX
public static final int AS
public static final int GROUP_BY
public static final int FOR_TUMBLING
public static final int FOR_SLIDING
public static final int COLON
public static final int XQUERY_VERSION
public static final int XQUERY_ENCODING
public static final int DECLARE_NAMESPACE
public static final int DECLARE_DEFAULT
public static final int DECLARE_CONSTRUCTION
public static final int DECLARE_BASEURI
public static final int DECLARE_BOUNDARY_SPACE
public static final int DECLARE_DECIMAL_FORMAT
public static final int IMPORT_SCHEMA
public static final int IMPORT_MODULE
public static final int DECLARE_VARIABLE
public static final int DECLARE_CONTEXT
public static final int DECLARE_FUNCTION
public static final int MODULE_NAMESPACE
public static final int VALIDATE
public static final int VALIDATE_STRICT
public static final int VALIDATE_LAX
public static final int VALIDATE_TYPE
public static final int PERCENT
public static final int DECLARE_ORDERING
public static final int DECLARE_COPY_NAMESPACES
public static final int DECLARE_OPTION
public static final int DECLARE_REVALIDATION
public static final int INSERT_NODE
public static final int DELETE_NODE
public static final int REPLACE_NODE
public static final int REPLACE_VALUE
public static final int RENAME_NODE
public static final int FIRST_INTO
public static final int LAST_INTO
public static final int AFTER
public static final int BEFORE
public static final int INTO
public static final int WITH
public static final int DECLARE_UPDATING
public static final int DECLARE_ANNOTATED
public static final int SEMICOLON
public static final int NAME
public static final int STRING_LITERAL
public static final int RSQB
public static final int RPAR
public static final int DOT
public static final int DOTDOT
public static final int STAR
public static final int PREFIX
public static final int NUMBER
public static final int FOR
public static final int DEFAULT
public static final int QMARK
public static final int RCURLY
public static final int LET
public static final int TAG
public static final int PRAGMA
public static final int COPY
public static final int COUNT
public static final int NEGATE
public static final String[] tokens
public static HashMap<String,Integer> doubleKeywords
public static final int UNKNOWN
public static int inverse(int operator)
operator
- the operator whose inverse is requiredpublic static int negate(int operator)
operator
- the operator to be negatedpublic static boolean isOrderedOperator(int operator)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.