public class OpCodes extends Object
Code for the descriptions of the operations codes: [UPPER CASE] indicates a literal value, [lower case] is a description of a value, ([length] always indicates the length of the operation, including the operations code and the length integer.) {UPPER CASE} indicates the given production, {description} is the description of a new production, (For instance, {boolean expression} means some expression that should be resolved to a boolean.) * means that it occurs zero or more times, + means that it occurs one or more times, ? means that it is optional.
returns: indicates what the production should return.
| Modifier and Type | Field and Description |
|---|---|
static int |
AXES_END_TYPES
The end of the axes types.
|
static int |
AXES_START_TYPES
[FROM_stepType] [length, including predicates] [length of just the step, without the
predicates] {node test} {predicates}?
|
static int |
ELEMWILDCARD
[ELEMWILDCARD] Means ELEMWILDCARD ("*"), used instead of string index in some places.
|
static int |
EMPTY
[EMPTY] Empty slot to indicate NULL.
|
static int |
ENDOP
[ENDOP] Some operators may like to have a terminator.
|
static int |
FROM_ANCESTORS
ancestor axes opcode.
|
static int |
FROM_ANCESTORS_OR_SELF
ancestor-or-self axes opcode.
|
static int |
FROM_ATTRIBUTES
attribute axes opcode.
|
static int |
FROM_CHILDREN
children axes opcode.
|
static int |
FROM_DESCENDANTS
descendants axes opcode.
|
static int |
FROM_DESCENDANTS_OR_SELF
descendants-of-self axes opcode.
|
static int |
FROM_FOLLOWING
following axes opcode.
|
static int |
FROM_FOLLOWING_SIBLINGS
following-siblings axes opcode.
|
static int |
FROM_NAMESPACE
namespace axes opcode.
|
static int |
FROM_PARENT
parent axes opcode.
|
static int |
FROM_PRECEDING
preceding axes opcode.
|
static int |
FROM_PRECEDING_SIBLINGS
preceding-sibling axes opcode.
|
static int |
FROM_ROOT
'/' axes opcode.
|
static int |
FROM_SELF
self axes opcode.
|
static int |
MATCH_ANY_ANCESTOR
For match patterns.
|
static int |
MATCH_ATTRIBUTE
For match patterns.
|
static int |
MATCH_IMMEDIATE_ANCESTOR
For match patterns.
|
static int |
NODENAME
[NODENAME] [index to ns token or EMPTY] [index to name token]
|
static int |
NODETYPE_ANYELEMENT
[NODETYPE_ANY] No size or arguments.
|
static int |
NODETYPE_COMMENT
[NODETYPE_COMMENT] No size or arguments.
|
static int |
NODETYPE_FUNCTEST
[NODETYPE_ANY] No size or arguments.
|
static int |
NODETYPE_NODE
[NODETYPE_NODE] No size or arguments.
|
static int |
NODETYPE_PI
[NODETYPE_PI] [index to token] Note: must not overlap function OP number!
|
static int |
NODETYPE_ROOT
[NODETYPE_ROOT] No size or arguments.
|
static int |
NODETYPE_TEXT
[NODETYPE_TEXT] No size or arguments.
|
static int |
OP_AND
[OP_AND] [length] {boolean expression} {boolean expression}
|
static int |
OP_ARGUMENT
[OP_ARGUMENT] (Function argument.) [length] {expression}
|
static int |
OP_BOOL
[OP_BOOL] (cast operation) [length] {expression}
|
static int |
OP_DIV
[OP_DIV] [length] {number expression} {number expression}
|
static int |
OP_EQUALS
[OP_EQUALS] [length] {expression} {expression}
|
static int |
OP_FUNCTION
[OP_FUNCTION] [length] [FUNC_name] {OP_ARGUMENT} [ENDOP]
|
static int |
OP_GROUP
[OP_GROUP] [length] {expression}
|
static int |
OP_GT
[OP_GT] (greater-than) [length] {number expression} {number expression}
|
static int |
OP_GTE
[OP_GTE] (greater-than-or-equals) [length] {number expression} {number expression}
|
static int |
OP_LITERAL
[OP_LITERAL] [3] [index to token]
|
static int |
OP_LOCATIONPATH
[OP_LOCATIONPATH] [length] {FROM_stepType} | {function} {predicate} [ENDOP]
|
static int |
OP_LOCATIONPATHPATTERN
[OP_LOCATIONPATHPATTERN] [length] {FROM_stepType} | {function}{predicate} [ENDOP] returns:
XNodeSet
|
static int |
OP_LT
[OP_LT] (less-than) [length] {number expression} {number expression}
|
static int |
OP_LTE
[OP_LTE] (less-than-or-equals) [length] {number expression} {number expression}
|
static int |
OP_MATCHPATTERN
[OP_MATCHPATTERN] [length] {PathExpr}+
|
static int |
OP_MINUS
[OP_MINUS] [length] {number expression} {number expression}
|
static int |
OP_MOD
[OP_MOD] [length] {number expression} {number expression}
|
static int |
OP_MULT
[OP_MULT] [length] {number expression} {number expression}
|
static int |
OP_NEG
[OP_NEG] [length] {number expression}
|
static int |
OP_NOTEQUALS
[OP_NOTEQUALS] [length] {expression} {expression}
|
static int |
OP_NUMBER
[OP_NUMBER] (cast operation) [length] {expression}
|
static int |
OP_NUMBERLIT
[OP_NUMBERLIT] (Number literal.) [3] [index to token]
|
static int |
OP_OR
[OP_OR] [length] {boolean expression} {boolean expression}
|
static int |
OP_PLUS
[OP_PLUS] [length] {number expression} {number expression}
|
static int |
OP_PREDICATE
[OP_PREDICATE] [length] {expression} [ENDOP] (For safety)
|
static int |
OP_QUO
[OP_QUO] [length] {number expression} {number expression}
|
static int |
OP_STRING
[OP_STRING] (cast operation) [length] {expression}
|
static int |
OP_UNION
[OP_UNION] [length] {PathExpr}+
|
static int |
OP_VARIABLE
[OP_VARIABLE] [4] [index to namespace token, or EMPTY] [index to function name token]
|
static int |
OP_XPATH
[OP_XPATH] [length] {expression}
|
| Constructor and Description |
|---|
OpCodes() |
public static final int ENDOP
public static final int EMPTY
public static final int ELEMWILDCARD
public static final int OP_XPATH
returns: XNodeSet XNumber XString XBoolean XRTree XObject
public static final int OP_OR
returns: XBoolean
public static final int OP_AND
returns: XBoolean
public static final int OP_NOTEQUALS
returns: XBoolean
public static final int OP_EQUALS
returns: XBoolean
public static final int OP_LTE
returns: XBoolean
public static final int OP_LT
returns: XBoolean
public static final int OP_GTE
returns: XBoolean
public static final int OP_GT
returns: XBoolean
public static final int OP_PLUS
returns: XNumber
public static final int OP_MINUS
returns: XNumber
public static final int OP_MULT
returns: XNumber
public static final int OP_DIV
returns: XNumber
public static final int OP_MOD
returns: XNumber
public static final int OP_QUO
returns: XNumber
public static final int OP_NEG
returns: XNumber
public static final int OP_STRING
returns: XString
public static final int OP_BOOL
returns: XBoolean
public static final int OP_NUMBER
returns: XBoolean
public static final int OP_UNION
returns: XNodeSet
public static final int OP_LITERAL
returns: XString
public static final int OP_VARIABLE
returns: XString
public static final int OP_GROUP
returns: XNodeSet XNumber XString XBoolean XRTree XObject
public static final int OP_FUNCTION
returns: XNodeSet XNumber XString XBoolean XRTree XObject
public static final int OP_ARGUMENT
returns: XNodeSet XNumber XString XBoolean XRTree XObject
public static final int OP_NUMBERLIT
returns: XString
public static final int OP_LOCATIONPATH
(Note that element and attribute namespaces and names can be wildcarded '*'.)
returns: XNodeSet
public static final int OP_PREDICATE
returns: XBoolean or XNumber
public static final int OP_MATCHPATTERN
returns: XNodeSet
public static final int OP_LOCATIONPATHPATTERN
public static final int NODETYPE_COMMENT
returns: XBoolean
public static final int NODETYPE_TEXT
returns: XBoolean
public static final int NODETYPE_PI
returns: XBoolean
public static final int NODETYPE_NODE
returns: XBoolean
public static final int NODENAME
returns: XBoolean
public static final int NODETYPE_ROOT
returns: XBoolean
public static final int NODETYPE_ANYELEMENT
returns: XBoolean
public static final int NODETYPE_FUNCTEST
returns: XBoolean
public static final int AXES_START_TYPES
returns: XBoolean
public static final int FROM_ANCESTORS
public static final int FROM_ANCESTORS_OR_SELF
public static final int FROM_ATTRIBUTES
public static final int FROM_CHILDREN
public static final int FROM_DESCENDANTS
public static final int FROM_DESCENDANTS_OR_SELF
public static final int FROM_FOLLOWING
public static final int FROM_FOLLOWING_SIBLINGS
public static final int FROM_PARENT
public static final int FROM_PRECEDING
public static final int FROM_PRECEDING_SIBLINGS
public static final int FROM_SELF
public static final int FROM_NAMESPACE
public static final int FROM_ROOT
public static final int MATCH_ATTRIBUTE
public static final int MATCH_ANY_ANCESTOR
public static final int MATCH_IMMEDIATE_ANCESTOR
public static final int AXES_END_TYPES
Copyright © 2022–2024 HtmlUnit. All rights reserved.