|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.bytecode.GeneratedCode
public abstract class GeneratedCode
This abstract class is extended by the compiled code representing an Expression. The concrete subclasses of this class are generated dynamically by the expression compiler.
Constructor Summary | |
---|---|
GeneratedCode()
|
Method Summary | |
---|---|
void |
dynamicError(String message,
String code)
Helper method for use at run-time allowing the generated code to throw a dynamic error |
abstract boolean |
effectiveBooleanValue(AtomicValue val)
|
abstract boolean |
effectiveBooleanValue(SequenceIterator seq)
|
boolean |
effectiveBooleanValue(XPathContext context)
Method that can be implemented in each generated subclass, to actually evaluate the compiled code. |
Item |
evaluateItem(XPathContext context)
Method that can be implemented in each generated subclass, to actually evaluate the compiled code. |
Configuration |
getConfiguration()
Get the configuration. |
SequenceIterator |
iterate(XPathContext context)
Method that can be implemented in each generated subclass, to actually evaluate the compiled code. |
void |
process(XPathContext context)
Method that can be implemented in each generated subclass, to actually evaluate the compiled code. |
void |
setConfiguration(Configuration config)
Set the configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneratedCode()
Method Detail |
---|
public final void setConfiguration(Configuration config)
config
- the Saxon configurationpublic final Configuration getConfiguration()
public abstract boolean effectiveBooleanValue(AtomicValue val)
public abstract boolean effectiveBooleanValue(SequenceIterator seq)
public final void dynamicError(String message, String code) throws XPathException
message
- the error messagecode
- the error code
XPathException
- the exception representing the dynamic errorpublic SequenceIterator iterate(XPathContext context) throws XPathException
context
- the XPath dynamic context
XPathException
- if any dynamic error occurs during the evaluationpublic void process(XPathContext context) throws XPathException
context
- the XPath dynamic context
XPathException
- if any dynamic error occurs during the evaluationpublic Item evaluateItem(XPathContext context) throws XPathException
context
- the XPath dynamic context
XPathException
- if any dynamic error occurs during the evaluationpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
context
- the XPath dynamic context
XPathException
- if any dynamic error occurs during the evaluation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |