|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectExpression
SimpleExpression
RunInstruction
class RunInstruction
Utility class that does most of the work for RunElement.
| Field Summary | |
|---|---|
protected Expression |
command
|
protected InputElement.InputInstruction |
inputExpr
|
protected int |
nArgs
|
protected int |
timeout
|
| Fields inherited from class SimpleExpression |
|---|
arguments, NO_ARGUMENTS |
| Fields inherited from class Expression |
|---|
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties |
| Constructor Summary | |
|---|---|
RunInstruction(Expression command,
int timeout,
List args)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class SimpleExpression |
|---|
computeCardinality, computeDependencies, display, getItemType, iterate, iterateSubExpressions, optimize, process, promote, replaceSubExpression, setArguments, simplify, typeCheck |
| Methods inherited from class Expression |
|---|
adoptChildExpression, 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, typeError |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Expression command
protected int timeout
protected int nArgs
protected InputElement.InputInstruction inputExpr
| Constructor Detail |
|---|
public RunInstruction(Expression command,
int timeout,
List args)
| Method Detail |
|---|
public int getImplementationMethod()
getImplementationMethod in class Expressionpublic String getExpressionType()
getExpressionType in class SimpleExpression
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class SimpleExpressionXPathException
protected byte[] runAndGrab(XPathContext context,
String[] argArray)
throws XPathException,
DynamicError
XPathException
DynamicError
protected String[] gatherArgs(XPathContext context)
throws XPathException
XPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||