Method Summary |
|
protected Expression | and(int opPos) Compile an 'and' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | arg(int opPos) Compile a function argument.
Parameters: opPos - The current position in the m_opMap array. |
public void | assertion(boolean b, java.lang.String msg) Tell the user of an assertion error, and probably throw an
exception. |
protected Expression | bool(int opPos) Compile a 'boolean(...)' operation.
Parameters: opPos - The current position in the m_opMap array. |
public Expression | compile(int opPos) Execute the XPath object from a given opcode position.
Parameters: opPos - The current position in the xpath.m_opMap array. |
Expression | compileFunction(int opPos) Compile a built-in XPath function.
Parameters: opPos - The current position in the m_opMap array. |
public int | countPredicates(int opPos) Count the number of predicates in the step.
Parameters: opPos - The position of the first predicate the m_opMap array. |
protected Expression | div(int opPos) Compile a 'div' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | equals(int opPos) Compile a '=' operation.
Parameters: opPos - The current position in the m_opMap array. |
public void | error(String msg, Object[] args) Tell the user of an error, and probably throw an
exception. |
public Expression[] | getCompiledPredicates(int opPos) Compile a zero or more predicates for a given match pattern.
Parameters: opPos - The position of the first predicate the m_opMap array. |
FunctionTable | getFunctionTable() |
public int | getLocationPathDepth() Get the level of the location path or union being constructed. |
public PrefixResolver | getNamespaceContext() Get the current namespace context for the xpath. |
public int | getWhatToShow(int opPos) Get a
org.w3c.dom.traversal.NodeFilter bit set that tells what
to show for a given node test.
Parameters: opPos - the op map position for the location step. |
protected Expression | group(int opPos) Compile an expression group.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | gt(int opPos) Compile a '>' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | gte(int opPos) Compile a '>=' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | literal(int opPos) Compile a literal string value.
Parameters: opPos - The current position in the m_opMap array. |
public Expression | locationPath(int opPos) Compile a location path. |
public Expression | locationPathPattern(int opPos) Compile a location match pattern unit expression.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | lt(int opPos) Compile a '<' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | lte(int opPos) Compile a '<=' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | matchPattern(int opPos) Compile an entire match pattern expression.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | minus(int opPos) Compile a '-' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | mod(int opPos) Compile a 'mod' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | mult(int opPos) Compile a '*' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | neg(int opPos) Compile a unary '-' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | notequals(int opPos) Compile a '!=' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | number(int opPos) Compile a 'number(...)' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | numberlit(int opPos) Compile a literal number value.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | or(int opPos) Compile an 'or' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | plus(int opPos) Compile a '+' operation.
Parameters: opPos - The current position in the m_opMap array. |
public Expression | predicate(int opPos) Compile a location step predicate expression.
Parameters: opPos - The current position in the m_opMap array. |
public void | setNamespaceContext(PrefixResolver pr) Set the current namespace context for the xpath. |
protected StepPattern | stepPattern(int opPos, int stepCount, StepPattern ancestorPattern) Compile a step pattern unit expression, used for both location paths
and match patterns.
Parameters: opPos - The current position in the m_opMap array. Parameters: stepCount - The number of steps to expect. Parameters: ancestorPattern - The owning StepPattern, which may be null. |
protected Expression | string(int opPos) Compile a 'string(...)' operation.
Parameters: opPos - The current position in the m_opMap array. |
protected Expression | union(int opPos) Compile a location path union. |
protected Expression | variable(int opPos) Compile a variable reference.
Parameters: opPos - The current position in the m_opMap array. |
public void | warn(String msg, Object[] args) Warn the user of an problem. |