|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xpath.compiler.OpMap | +--org.apache.xpath.compiler.Compiler
Fields inherited from class org.apache.xpath.compiler.OpMap |
m_opMap,
m_tokenQueue,
m_tokenQueueSize,
MAPINDEX_LENGTH |
Constructor Summary | |
Compiler()
|
|
Compiler(ErrorHandler errorHandler,
Locator locator)
|
Method Summary | |
void |
assert(boolean b,
java.lang.String msg)
Tell the user of an assertion error, and probably throw an exception. |
Expression |
compile(int opPos)
**For advanced use only** Execute the XPath object from a given opcode position. |
int |
countPredicates(int opPos)
Count the number of predicates in the step. |
void |
error(int msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an exception. |
Expression[] |
getCompiledPredicates(int opPos)
|
PrefixResolver |
getNamespaceContext()
Get the current namespace context for the xpath. |
int |
getWhatToShow(int opPos)
|
Expression |
locationPath(int opPos)
**For advanced use only** Execute a location path. |
Expression |
locationPathPattern(int opPos)
Execute a a location path pattern. |
Expression |
predicate(int opPos)
**For advanced use only** Evaluate a predicate. |
void |
setNamespaceContext(PrefixResolver pr)
Set the current namespace context for the xpath. |
void |
warn(int msg,
java.lang.Object[] args)
Warn the user of an problem. |
Methods inherited from class org.apache.xpath.compiler.OpMap |
getArgLength,
getArgLengthOfStep,
getFirstChildPos,
getFirstChildPosOfStep,
getFirstPredicateOpPos,
getNextOpPos,
getNextOpPos,
getNextStepPos,
getOp,
getOpMap,
getPatternString,
getStepLocalName,
getStepNS,
getStepTestType,
getTargetElementQNames,
getToken,
getTokenQueue,
getTokenQueueSize,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Compiler(ErrorHandler errorHandler, Locator locator)
public Compiler()
Method Detail |
public Expression compile(int opPos) throws SAXException
xctxt
- The execution context.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.public Expression locationPath(int opPos) throws SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.public Expression predicate(int opPos) throws SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.public Expression locationPathPattern(int opPos) throws SAXException
xpath
- The xpath that is executing.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.public int getWhatToShow(int opPos)
public Expression[] getCompiledPredicates(int opPos) throws SAXException
public int countPredicates(int opPos) throws SAXException
public void warn(int msg, java.lang.Object[] args) throws SAXException
public void assert(boolean b, java.lang.String msg) throws SAXException
public void error(int msg, java.lang.Object[] args) throws SAXException
public PrefixResolver getNamespaceContext()
public void setNamespaceContext(PrefixResolver pr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |