|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Token
public abstract class Token
This class holds static constants and methods defining the lexical tokens used in XPath and XQuery, and associated keywords.
Field Summary | |
---|---|
static int |
AND
Operator "and" |
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 |
CASE
Keyword "case" |
static int |
CAST_AS
operator "cast as" |
static int |
CASTABLE_AS
operator "castable as" |
static int |
COLONCOLON
"::" symbol |
static int |
COLONSTAR
":*" symbol |
static int |
COMMA
Comma token |
static int |
DECLARE_BASEURI
"declare base-uri" |
static int |
DECLARE_BOUNDARY_SPACE
"declare boundary-space" |
static int |
DECLARE_CONSTRUCTION
"declare construction" |
static int |
DECLARE_COPY_NAMESPACES
"declare copy-namespaces" |
static int |
DECLARE_DEFAULT
"declare default" |
static int |
DECLARE_FUNCTION
"define function" |
static int |
DECLARE_NAMESPACE
"declare namespace" |
static int |
DECLARE_OPTION
"declare option" |
static int |
DECLARE_ORDERING
"declare xmlspace" |
static int |
DECLARE_VARIABLE
"define variable" |
static int |
DEFAULT
Keyword "default" |
static int |
DIV
Operator "div" |
static int |
DOLLAR
"$" symbol |
static int |
DOT
"." symbol |
static int |
DOTDOT
".." symbol |
static HashMap |
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 |
FLE
opeartor "le" |
static int |
FLT
operator "lt" |
static int |
FNE
operator "ne" |
static int |
FOLLOWS
Operator ">>" |
static int |
FOR
"for" keyword |
static int |
FUNCTION
Token representing the name of a function and the following "(" symbol |
static int |
GE
Operator ">=" |
static int |
GT
Operator ">" |
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 |
INSTANCE_OF
operator "instance of" |
static int |
INTERSECT
Operator "intersect" |
static int |
IS
Operator "is" |
static int |
KEYWORD_CURLY
composite token: |
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 |
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 |
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 |
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 |
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 |
SLSL
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 |
TAG
"<" at the start of a tag (XQuery only). |
static int |
THEN
Ketword "then" |
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 |
WHERE
Keyword "where" |
static int |
XQUERY_VERSION
"xquery version" |
Method Summary | |
---|---|
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) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 SLSL
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 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 COLONCOLON
public static final int COLONSTAR
public static final int INSTANCE_OF
public static final int CAST_AS
public static final int TREAT_AS
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 TYPESWITCH
public static final int CASE
public static final int NODEKIND
public static final int SUFFIX
public static final int XQUERY_VERSION
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 IMPORT_SCHEMA
public static final int IMPORT_MODULE
public static final int DECLARE_VARIABLE
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 DECLARE_ORDERING
public static final int DECLARE_COPY_NAMESPACES
public static final int DECLARE_OPTION
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 NEGATE
public static String[] tokens
public static HashMap doubleKeywords
public static final int UNKNOWN
Method Detail |
---|
public static final int inverse(int operator)
public static final int negate(int operator)
public static boolean isOrderedOperator(int operator)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |