class RunInstruction
extends SimpleExpression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
command |
protected InputElement.InputInstruction |
inputExpr |
protected int |
nArgs |
protected int |
timeout |
| Constructor and Description |
|---|
RunInstruction(Expression command,
int timeout,
List args) |
| Modifier and Type | Method and Description |
|---|---|
Item |
evaluateItem(XPathContext context) |
protected String[] |
gatherArgs(XPathContext context)
Gather all the arguments for this instruction and make them into a
convenient array.
|
String |
getExpressionType() |
int |
getImplementationMethod()
A subclass must provide one of the methods evaluateItem(), iterate(), or process().
|
protected byte[] |
runAndGrab(XPathContext context,
String[] argArray)
Run the external process, applying a timeout if specified, feeding it
input on stdin and gathering the results from stdout.
|
computeCardinality, computeDependencies, display, getItemType, iterate, iterateSubExpressions, optimize, process, promote, replaceSubExpression, setArguments, simplify, typeCheckadoptChildExpression, checkPermittedContents, computeSpecialProperties, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getContainingProcedure, getDependencies, getExecutable, getHostLanguage, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorprotected Expression command
protected int timeout
protected int nArgs
protected InputElement.InputInstruction inputExpr
public int getImplementationMethod()
getImplementationMethod in class Expressionpublic String getExpressionType()
getExpressionType in class SimpleExpressionpublic Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class SimpleExpressionXPathExceptionprotected byte[] runAndGrab(XPathContext context,
String[] argArray)
throws XPathException,
DynamicError
XPathExceptionDynamicErrorprotected String[] gatherArgs(XPathContext context)
throws XPathException
XPathException