| |
|
| java.lang.Object net.sf.saxon.expr.Token
Token | abstract public class Token (Code) | | This class holds static constants and methods defining the lexical tokens used in
XPath and XQuery, and associated keywords.
|
Method Summary | |
final public static int | inverse(int operator) | final public static int | negate(int operator) |
AND | final public static int AND(Code) | | Operator "and"
|
ASSIGN | final public static int ASSIGN(Code) | | ":=" symbol (XQuery only)
|
AT | final public static int AT(Code) | | At token, "@"
|
ATTRIBUTE_QNAME | final public static int ATTRIBUTE_QNAME(Code) | | composite token <'attribute' QNAME> (XQuery only)
|
AXIS | final public static int AXIS(Code) | | Token representing the name of an axis and the following "::" symbol
|
CASE | final public static int CASE(Code) | | Keyword "case"
|
CASTABLE_AS | final public static int CASTABLE_AS(Code) | | operator "castable as"
|
CAST_AS | final public static int CAST_AS(Code) | | operator "cast as"
|
COLONCOLON | final public static int COLONCOLON(Code) | | "::" symbol
|
COLONSTAR | final public static int COLONSTAR(Code) | | ":*" symbol
|
COMMA | final public static int COMMA(Code) | | Comma token
|
DECLARE_BASEURI | final public static int DECLARE_BASEURI(Code) | | "declare base-uri"
|
DECLARE_BOUNDARY_SPACE | final public static int DECLARE_BOUNDARY_SPACE(Code) | | "declare boundary-space"
|
DECLARE_CONSTRUCTION | final public static int DECLARE_CONSTRUCTION(Code) | | "declare construction"
|
DECLARE_COPY_NAMESPACES | final public static int DECLARE_COPY_NAMESPACES(Code) | | "declare copy-namespaces"
|
DECLARE_DEFAULT | final public static int DECLARE_DEFAULT(Code) | | "declare default"
|
DECLARE_FUNCTION | final public static int DECLARE_FUNCTION(Code) | | "define function"
|
DECLARE_NAMESPACE | final public static int DECLARE_NAMESPACE(Code) | | "declare namespace"
|
DECLARE_OPTION | final public static int DECLARE_OPTION(Code) | | "declare option"
|
DECLARE_ORDERING | final public static int DECLARE_ORDERING(Code) | | "declare xmlspace"
|
DECLARE_VARIABLE | final public static int DECLARE_VARIABLE(Code) | | "define variable"
|
DEFAULT | final public static int DEFAULT(Code) | | Keyword "default"
|
DIV | final public static int DIV(Code) | | Operator "div"
|
DOLLAR | final public static int DOLLAR(Code) | | "$" symbol
|
DOT | final public static int DOT(Code) | | "." symbol
|
DOTDOT | final public static int DOTDOT(Code) | | ".." symbol
|
ELEMENT_QNAME | final public static int ELEMENT_QNAME(Code) | | composite token <'element' QNAME> (XQuery only)
|
ELSE | final public static int ELSE(Code) | | Keyword "else"
|
EOF | final public static int EOF(Code) | | Pseudo-token representing the end of the expression
|
EQUALS | final public static int EQUALS(Code) | | Equals token ("=")
|
EVERY | final public static int EVERY(Code) | | Keyword "every"
|
EXCEPT | final public static int EXCEPT(Code) | | Operator "except"
|
FEQ | final public static int FEQ(Code) | | operator "eq"
|
FGE | final public static int FGE(Code) | | operator "ge"
|
FGT | final public static int FGT(Code) | | operator "gt"
|
FLE | final public static int FLE(Code) | | opeartor "le"
|
FLT | final public static int FLT(Code) | | operator "lt"
|
FNE | final public static int FNE(Code) | | operator "ne"
|
FOLLOWS | final public static int FOLLOWS(Code) | | Operator ">>"
|
FOR | final public static int FOR(Code) | | "for" keyword
|
FUNCTION | final public static int FUNCTION(Code) | | Token representing the name of a function and the following "(" symbol
|
GE | final public static int GE(Code) | | Operator ">="
|
GT | final public static int GT(Code) | | Operator ">"
|
IDIV | final public static int IDIV(Code) | | operator "idiv"
|
IF | final public static int IF(Code) | | Keyword "if"
|
IMPORT_MODULE | final public static int IMPORT_MODULE(Code) | | "import module"
|
IMPORT_SCHEMA | final public static int IMPORT_SCHEMA(Code) | | "import schema"
|
IN | final public static int IN(Code) | | Keyword "in"
|
INSTANCE_OF | final public static int INSTANCE_OF(Code) | | operator "instance of"
|
INTERSECT | final public static int INTERSECT(Code) | | Operator "intersect"
|
IS | final public static int IS(Code) | | Operator "is"
|
KEYWORD_CURLY | final public static int KEYWORD_CURLY(Code) | | composite token: (XQuery only)
|
LAST_OPERATOR | static int LAST_OPERATOR(Code) | | Constant identifying the token number of the last token to be classified as an operator
|
LCURLY | final public static int LCURLY(Code) | | "{" symbol (XQuery only)
|
LE | final public static int LE(Code) | | Operator "<="
|
LET | final public static int LET(Code) | | "let" keyword (XQuery only)
|
LPAR | final public static int LPAR(Code) | | Left parenthesis
|
LSQB | final public static int LSQB(Code) | | Left square bracket
|
LT | final public static int LT(Code) | | Operator "<"
|
MINUS | final public static int MINUS(Code) | | Binary minus operator
|
MOD | final public static int MOD(Code) | | Operator "mod"
|
MODULE_NAMESPACE | final public static int MODULE_NAMESPACE(Code) | | "module namespace"
|
MULT | final public static int MULT(Code) | | Multiply operator, "*" when used in an operator context
|
NAME | final public static int NAME(Code) | | Name token (a QName, in general)
|
NE | final public static int NE(Code) | | Operator not-equals. That is, "!="
|
NEGATE | final public static int NEGATE(Code) | | Unary minus sign
|
NODEKIND | final public static int NODEKIND(Code) | | Node kind, e.g. "node()" or "comment()"
|
NUMBER | final public static int NUMBER(Code) | | Numeric literal
|
OR | final public static int OR(Code) | | Operator "or"
|
PI_QNAME | final public static int PI_QNAME(Code) | | composite token <'pi' QNAME> (XQuery only)
|
PLUS | final public static int PLUS(Code) | | Operator "+"
|
PRAGMA | final public static int PRAGMA(Code) | | A token representing an XQuery pragma.
This construct "(# .... #)" is regarded as a single token, for the QueryParser to sort out.
|
PRECEDES | final public static int PRECEDES(Code) | | Operator "<<"
|
PREFIX | final public static int PREFIX(Code) | | "prefix:*" token
|
QMARK | final public static int QMARK(Code) | | Question mark symbol. That is, "?"
|
RCURLY | final public static int RCURLY(Code) | | "}" symbol (XQuery only)
|
RETURN | final public static int RETURN(Code) | | Keyword "return"
|
RPAR | final public static int RPAR(Code) | | Right parenthesis
|
RSQB | final public static int RSQB(Code) | | Right square bracket
|
SATISFIES | final public static int SATISFIES(Code) | | Keyword "satisfies"
|
SEMICOLON | final public static int SEMICOLON(Code) | | semicolon separator
|
SLASH | final public static int SLASH(Code) | | Forwards "/"
|
SLSL | final public static int SLSL(Code) | | Double forwards slash, "//"
|
SOME | final public static int SOME(Code) | | Keyword "some"
|
STAR | final public static int STAR(Code) | | "*" symbol when used as a wildcard
|
STRING_LITERAL | final public static int STRING_LITERAL(Code) | | String literal
|
SUFFIX | final public static int SUFFIX(Code) | | "*:" token
|
TAG | final public static int TAG(Code) | | "<" at the start of a tag (XQuery only). The pseudo-XML syntax that
follows is read character-by-character by the XQuery parser
|
THEN | final public static int THEN(Code) | | Ketword "then"
|
TO | final public static int TO(Code) | | Operator "to"
|
TREAT_AS | final public static int TREAT_AS(Code) | | operator "treat as"
|
TYPESWITCH | final public static int TYPESWITCH(Code) | | Keyword "typeswitch"
|
UNION | final public static int UNION(Code) | | "union" or "|" token
|
UNKNOWN | final public static int UNKNOWN(Code) | | Pseudo-token representing the start of the expression
|
VALIDATE | final public static int VALIDATE(Code) | | Various compound symbols supporting XQuery validation expression
|
VALIDATE_LAX | final public static int VALIDATE_LAX(Code) | | |
VALIDATE_STRICT | final public static int VALIDATE_STRICT(Code) | | |
WHERE | final public static int WHERE(Code) | | Keyword "where"
|
XQUERY_VERSION | final public static int XQUERY_VERSION(Code) | | "xquery version"
|
doubleKeywords | public static HashMap doubleKeywords(Code) | | Lookup table for composite (two-keyword) tokens
|
tokens | public static String[] tokens(Code) | | The following strings are used to represent tokens in error messages
|
inverse | final public static int inverse(int operator)(Code) | | Return the inverse of a relational operator, so that "a op b" can be
rewritten as "b inverse(op) a"
|
negate | final public static int negate(int operator)(Code) | | Return the negation of a relational operator, so that "a op b" can be
rewritten as not(b op' a)
|
|
|
|