APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.compiler

public Class OpCodes

extends Object
Class Inheritance

Operations codes for XPath. 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.

Field Summary

Modifier and TypeField and Description
public static final int
AXES_END_TYPES

The end of the axes types.

public static final int
AXES_START_TYPES

[FROM_stepType] [length, including predicates] [length of just the step, without the predicates] {node test} {predicates}?

public static final int
ELEMWILDCARD

[ELEMWILDCARD] Means ELEMWILDCARD ("*"), used instead of string index in some places.

public static final int
EMPTY

[EMPTY] Empty slot to indicate NULL.

public static final int
ENDOP

[ENDOP] Some operators may like to have a terminator.

pack-priv static final int
FIRST_NODESET_OP

The low opcode for nodesets, needed by getFirstPredicateOpPos and getNextStepPos.

public static final int
FROM_ANCESTORS

ancestor axes opcode.

public static final int
FROM_ANCESTORS_OR_SELF

ancestor-or-self axes opcode.

public static final int
FROM_ATTRIBUTES

attribute axes opcode.

public static final int
FROM_CHILDREN

children axes opcode.

public static final int
FROM_DESCENDANTS

descendants axes opcode.

public static final int
FROM_DESCENDANTS_OR_SELF

descendants-of-self axes opcode.

public static final int
FROM_FOLLOWING

following axes opcode.

public static final int
FROM_FOLLOWING_SIBLINGS

following-siblings axes opcode.

public static final int
FROM_NAMESPACE

namespace axes opcode.

public static final int
FROM_PARENT

parent axes opcode.

public static final int
FROM_PRECEDING

preceding axes opcode.

public static final int
FROM_PRECEDING_SIBLINGS

preceding-sibling axes opcode.

public static final int
FROM_ROOT

'/' axes opcode.

public static final int
FROM_SELF

self axes opcode.

pack-priv static final int
LAST_NODESET_OP

The last opcode for stuff that can be a nodeset.

public static final int
MATCH_ANY_ANCESTOR

For match patterns.

public static final int
MATCH_ATTRIBUTE

For match patterns.

public static final int
MATCH_IMMEDIATE_ANCESTOR

For match patterns.

private static final int
NEXT_FREE_ID

The next free ID. Please keep this up to date.

public static final int
NODENAME

[NODENAME] [index to ns token or EMPTY] [index to name token] returns: XBoolean

public static final int
NODETYPE_ANYELEMENT

[NODETYPE_ANY] No size or arguments.

public static final int
NODETYPE_COMMENT

[NODETYPE_COMMENT] No size or arguments.

public static final int
NODETYPE_FUNCTEST

[NODETYPE_ANY] No size or arguments.

public static final int
NODETYPE_NODE

[NODETYPE_NODE] No size or arguments.

public static final int
NODETYPE_PI

[NODETYPE_PI] [index to token] Note: must not overlap function OP number!

public static final int
NODETYPE_ROOT

[NODETYPE_ROOT] No size or arguments.

public static final int
NODETYPE_TEXT

[NODETYPE_TEXT] No size or arguments.

public static final int
OP_AND

[OP_AND] [length] {boolean expression} {boolean expression} returns: XBoolean

public static final int
OP_ARGUMENT

[OP_ARGUMENT] (Function argument.) [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject

public static final int
OP_BOOL

[OP_BOOL] (cast operation) [length] {expression} returns: XBoolean

public static final int
OP_DIV

[OP_DIV] [length] {number expression} {number expression} returns: XNumber

public static final int
OP_EQUALS

[OP_EQUALS] [length] {expression} {expression} returns: XBoolean

public static final int
OP_EXTFUNCTION

[OP_EXTFUNCTION] (Extension function.) [length] [index to namespace token] [index to function name token] {OP_ARGUMENT} returns: XNodeSet XNumber XString XBoolean XRTree XObject

public static final int
OP_FUNCTION

[OP_FUNCTION] [length] [FUNC_name] {OP_ARGUMENT} [ENDOP] returns: XNodeSet XNumber XString XBoolean XRTree XObject

public static final int
OP_GROUP

[OP_GROUP] [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject

public static final int
OP_GT

[OP_GT] (greater-than) [length] {number expression} {number expression} returns: XBoolean

public static final int
OP_GTE

[OP_GTE] (greater-than-or-equals) [length] {number expression} {number expression} returns: XBoolean

public static final int
OP_LITERAL

[OP_LITERAL] [3] [index to token] returns: XString

public static final int
OP_LOCATIONPATH

[OP_LOCATIONPATH] [length] {FROM_stepType} | {function} {predicate} [ENDOP] (Note that element and attribute namespaces and names can be wildcarded '*'.) returns: XNodeSet

public static final int
OP_LOCATIONPATHPATTERN

[OP_LOCATIONPATHPATTERN] [length] {FROM_stepType} | {function}{predicate} [ENDOP] returns: XNodeSet

public static final int
OP_LT

[OP_LT] (less-than) [length] {number expression} {number expression} returns: XBoolean

public static final int
OP_LTE

[OP_LTE] (less-than-or-equals) [length] {number expression} {number expression} returns: XBoolean

public static final int
OP_MATCHPATTERN

[OP_MATCHPATTERN] [length] {PathExpr}+ returns: XNodeSet

public static final int
OP_MINUS

[OP_MINUS] [length] {number expression} {number expression} returns: XNumber

public static final int
OP_MOD

[OP_MOD] [length] {number expression} {number expression} returns: XNumber

public static final int
OP_MULT

[OP_MULT] [length] {number expression} {number expression} returns: XNumber

public static final int
OP_NEG

[OP_NEG] [length] {number expression} returns: XNumber

public static final int
OP_NOTEQUALS

[OP_NOTEQUALS] [length] {expression} {expression} returns: XBoolean

public static final int
OP_NUMBER

[OP_NUMBER] (cast operation) [length] {expression} returns: XBoolean

public static final int
OP_NUMBERLIT

[OP_NUMBERLIT] (Number literal.) [3] [index to token] returns: XString

public static final int
OP_OR

[OP_OR] [length] {boolean expression} {boolean expression} returns: XBoolean

public static final int
OP_PLUS

[OP_PLUS] [length] {number expression} {number expression} returns: XNumber

public static final int
OP_PREDICATE

[OP_PREDICATE] [length] {expression} [ENDOP] (For safety) returns: XBoolean or XNumber

public static final int
OP_QUO

[OP_QUO] [length] {number expression} {number expression} returns: XNumber

public static final int
OP_STRING

[OP_STRING] (cast operation) [length] {expression} returns: XString

public static final int
OP_UNION

[OP_UNION] [length] {PathExpr}+ returns: XNodeSet

public static final int
OP_VARIABLE

[OP_VARIABLE] [4] [index to namespace token, or EMPTY] [index to function name token] returns: XString

public static final int
OP_XPATH

[OP_XPATH] [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AXES_END_TYPESback to summary
public static final int AXES_END_TYPES

The end of the axes types.

AXES_START_TYPESback to summary
public static final int AXES_START_TYPES

[FROM_stepType] [length, including predicates] [length of just the step, without the predicates] {node test} {predicates}? returns: XBoolean

ELEMWILDCARDback to summary
public static final int ELEMWILDCARD

[ELEMWILDCARD] Means ELEMWILDCARD ("*"), used instead of string index in some places.

EMPTYback to summary
public static final int EMPTY

[EMPTY] Empty slot to indicate NULL.

ENDOPback to summary
public static final int ENDOP

[ENDOP] Some operators may like to have a terminator.

FIRST_NODESET_OPback to summary
pack-priv static final int FIRST_NODESET_OP

The low opcode for nodesets, needed by getFirstPredicateOpPos and getNextStepPos.

FROM_ANCESTORSback to summary
public static final int FROM_ANCESTORS

ancestor axes opcode.

FROM_ANCESTORS_OR_SELFback to summary
public static final int FROM_ANCESTORS_OR_SELF

ancestor-or-self axes opcode.

FROM_ATTRIBUTESback to summary
public static final int FROM_ATTRIBUTES

attribute axes opcode.

FROM_CHILDRENback to summary
public static final int FROM_CHILDREN

children axes opcode.

FROM_DESCENDANTSback to summary
public static final int FROM_DESCENDANTS

descendants axes opcode.

FROM_DESCENDANTS_OR_SELFback to summary
public static final int FROM_DESCENDANTS_OR_SELF

descendants-of-self axes opcode.

FROM_FOLLOWINGback to summary
public static final int FROM_FOLLOWING

following axes opcode.

FROM_FOLLOWING_SIBLINGSback to summary
public static final int FROM_FOLLOWING_SIBLINGS

following-siblings axes opcode.

FROM_NAMESPACEback to summary
public static final int FROM_NAMESPACE

namespace axes opcode.

FROM_PARENTback to summary
public static final int FROM_PARENT

parent axes opcode.

FROM_PRECEDINGback to summary
public static final int FROM_PRECEDING

preceding axes opcode.

FROM_PRECEDING_SIBLINGSback to summary
public static final int FROM_PRECEDING_SIBLINGS

preceding-sibling axes opcode.

FROM_ROOTback to summary
public static final int FROM_ROOT

'/' axes opcode.

FROM_SELFback to summary
public static final int FROM_SELF

self axes opcode.

LAST_NODESET_OPback to summary
pack-priv static final int LAST_NODESET_OP

The last opcode for stuff that can be a nodeset.

MATCH_ANY_ANCESTORback to summary
public static final int MATCH_ANY_ANCESTOR

For match patterns.

MATCH_ATTRIBUTEback to summary
public static final int MATCH_ATTRIBUTE

For match patterns.

MATCH_IMMEDIATE_ANCESTORback to summary
public static final int MATCH_IMMEDIATE_ANCESTOR

For match patterns.

NEXT_FREE_IDback to summary
private static final int NEXT_FREE_ID

The next free ID. Please keep this up to date.

NODENAMEback to summary
public static final int NODENAME

[NODENAME] [index to ns token or EMPTY] [index to name token] returns: XBoolean

NODETYPE_ANYELEMENTback to summary
public static final int NODETYPE_ANYELEMENT

[NODETYPE_ANY] No size or arguments. returns: XBoolean

NODETYPE_COMMENTback to summary
public static final int NODETYPE_COMMENT

[NODETYPE_COMMENT] No size or arguments.

Note

must not overlap function OP number! returns: XBoolean

NODETYPE_FUNCTESTback to summary
public static final int NODETYPE_FUNCTEST

[NODETYPE_ANY] No size or arguments. returns: XBoolean

NODETYPE_NODEback to summary
public static final int NODETYPE_NODE

[NODETYPE_NODE] No size or arguments.

Note

must not overlap function OP number! returns: XBoolean

NODETYPE_PIback to summary
public static final int NODETYPE_PI

[NODETYPE_PI] [index to token] Note: must not overlap function OP number! returns: XBoolean

NODETYPE_ROOTback to summary
public static final int NODETYPE_ROOT

[NODETYPE_ROOT] No size or arguments. returns: XBoolean

NODETYPE_TEXTback to summary
public static final int NODETYPE_TEXT

[NODETYPE_TEXT] No size or arguments.

Note

must not overlap function OP number! returns: XBoolean

OP_ANDback to summary
public static final int OP_AND

[OP_AND] [length] {boolean expression} {boolean expression} returns: XBoolean

OP_ARGUMENTback to summary
public static final int OP_ARGUMENT

[OP_ARGUMENT] (Function argument.) [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject

OP_BOOLback to summary
public static final int OP_BOOL

[OP_BOOL] (cast operation) [length] {expression} returns: XBoolean

OP_DIVback to summary
public static final int OP_DIV

[OP_DIV] [length] {number expression} {number expression} returns: XNumber

OP_EQUALSback to summary
public static final int OP_EQUALS

[OP_EQUALS] [length] {expression} {expression} returns: XBoolean

OP_EXTFUNCTIONback to summary
public static final int OP_EXTFUNCTION

[OP_EXTFUNCTION] (Extension function.) [length] [index to namespace token] [index to function name token] {OP_ARGUMENT} returns: XNodeSet XNumber XString XBoolean XRTree XObject

OP_FUNCTIONback to summary
public static final int OP_FUNCTION

[OP_FUNCTION] [length] [FUNC_name] {OP_ARGUMENT} [ENDOP] returns: XNodeSet XNumber XString XBoolean XRTree XObject

OP_GROUPback to summary
public static final int OP_GROUP

[OP_GROUP] [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject

OP_GTback to summary
public static final int OP_GT

[OP_GT] (greater-than) [length] {number expression} {number expression} returns: XBoolean

OP_GTEback to summary
public static final int OP_GTE

[OP_GTE] (greater-than-or-equals) [length] {number expression} {number expression} returns: XBoolean

OP_LITERALback to summary
public static final int OP_LITERAL

[OP_LITERAL] [3] [index to token] returns: XString

OP_LOCATIONPATHback to summary
public static final int OP_LOCATIONPATH

[OP_LOCATIONPATH] [length] {FROM_stepType} | {function} {predicate} [ENDOP] (Note that element and attribute namespaces and names can be wildcarded '*'.) returns: XNodeSet

OP_LOCATIONPATHPATTERNback to summary
public static final int OP_LOCATIONPATHPATTERN

[OP_LOCATIONPATHPATTERN] [length] {FROM_stepType} | {function}{predicate} [ENDOP] returns: XNodeSet

OP_LTback to summary
public static final int OP_LT

[OP_LT] (less-than) [length] {number expression} {number expression} returns: XBoolean

OP_LTEback to summary
public static final int OP_LTE

[OP_LTE] (less-than-or-equals) [length] {number expression} {number expression} returns: XBoolean

OP_MATCHPATTERNback to summary
public static final int OP_MATCHPATTERN

[OP_MATCHPATTERN] [length] {PathExpr}+ returns: XNodeSet

OP_MINUSback to summary
public static final int OP_MINUS

[OP_MINUS] [length] {number expression} {number expression} returns: XNumber

OP_MODback to summary
public static final int OP_MOD

[OP_MOD] [length] {number expression} {number expression} returns: XNumber

OP_MULTback to summary
public static final int OP_MULT

[OP_MULT] [length] {number expression} {number expression} returns: XNumber

OP_NEGback to summary
public static final int OP_NEG

[OP_NEG] [length] {number expression} returns: XNumber

OP_NOTEQUALSback to summary
public static final int OP_NOTEQUALS

[OP_NOTEQUALS] [length] {expression} {expression} returns: XBoolean

OP_NUMBERback to summary
public static final int OP_NUMBER

[OP_NUMBER] (cast operation) [length] {expression} returns: XBoolean

OP_NUMBERLITback to summary
public static final int OP_NUMBERLIT

[OP_NUMBERLIT] (Number literal.) [3] [index to token] returns: XString

OP_ORback to summary
public static final int OP_OR

[OP_OR] [length] {boolean expression} {boolean expression} returns: XBoolean

OP_PLUSback to summary
public static final int OP_PLUS

[OP_PLUS] [length] {number expression} {number expression} returns: XNumber

OP_PREDICATEback to summary
public static final int OP_PREDICATE

[OP_PREDICATE] [length] {expression} [ENDOP] (For safety) returns: XBoolean or XNumber

OP_QUOback to summary
public static final int OP_QUO

[OP_QUO] [length] {number expression} {number expression} returns: XNumber

OP_STRINGback to summary
public static final int OP_STRING

[OP_STRING] (cast operation) [length] {expression} returns: XString

OP_UNIONback to summary
public static final int OP_UNION

[OP_UNION] [length] {PathExpr}+ returns: XNodeSet

OP_VARIABLEback to summary
public static final int OP_VARIABLE

[OP_VARIABLE] [4] [index to namespace token, or EMPTY] [index to function name token] returns: XString

OP_XPATHback to summary
public static final int OP_XPATH

[OP_XPATH] [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject

Constructor Detail

OpCodesback to summary
public OpCodes()