|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectNodeImpl
ElementImpl
ElementWithAttributes
StyleElement
ExtensionInstruction
RunElement
public class RunElement
Implements a Saxon instruction that executes an external process and properly formats the result. Provides timeout and error checking.
| Nested Class Summary | |
|---|---|
private static class |
RunElement.InputStuffer
Class to stuff input into the process's input stream (an OutputStream to us). |
private static class |
RunElement.Interrupter
Used to interrupt the main thread if a timeout occurs |
private static class |
RunElement.OutputGrabber
Class to accumulate the output from a process's output stream (which is an InputStream to us), and turn it into a string. |
private static class |
RunElement.RunInstruction
|
| Field Summary | |
|---|---|
(package private) String |
command
|
protected int |
sequence
|
(package private) int |
timeoutMsec
|
| Fields inherited from class StyleElement |
|---|
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version |
| Fields inherited from class ElementWithAttributes |
|---|
attributeList, namespaceList |
| Fields inherited from class ElementImpl |
|---|
nameCode, root |
| Fields inherited from class NodeImpl |
|---|
index, NODE_LETTER, parent |
| Fields inherited from interface NodeInfo |
|---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
| Fields inherited from interface ValueRepresentation |
|---|
EMPTY_VALUE_ARRAY |
| Constructor Summary | |
|---|---|
RunElement()
|
|
| Method Summary | |
|---|---|
void |
addChild(NodeImpl arg0,
int arg1)
|
void |
compact(int arg0)
|
Expression |
compile(Executable exec)
|
AxisIterator |
enumerateChildren(NodeTest arg0)
|
List |
getArgInstructions(Executable exec)
|
NodeInfo |
getFirstChild()
|
NodeInfo |
getLastChild()
|
protected NodeImpl |
getNthChild(int arg0)
|
protected long |
getSequenceNumber()
|
String |
getStringValue()
|
CharSequence |
getStringValueCS()
|
boolean |
hasChildNodes()
|
void |
prepareAttributes()
|
void |
useChildrenArray(NodeImpl[] arg0)
|
| Methods inherited from class ExtensionInstruction |
|---|
isInstruction, mayContainFallback, validate |
| Methods inherited from class StyleElement |
|---|
allocateLocationId, allocatePatternSlots, allocateSlots, allocateSlots, backwardsCompatibleModeIsEnabled, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, checkWithinTemplate, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, fixupReferences, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getCommonChildItemType, getConstructType, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectFingerprint, getObjectNameCode, getPrecedence, getPreparedStylesheet, getPrincipalStylesheet, getProperties, getProperty, getReturnedItemType, getSchemaType, getStaticContext, getStylesheetFunction, getSystemId, getTargetNamePool, getTypeAnnotation, getVersion, getWithParamInstructions, isExcludedNamespace, isExplaining, isExtensionNamespace, isPermittedChild, issueWarning, issueWarning, isTopLevel, makeAttributeValueTemplate, makeExpression, makeNameCode, makeNamespaceContext, makePattern, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainSequenceConstructor, postValidate, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processVersionAttribute, replaceSubExpression, reportAbsence, setLineNumber, setObjectNameCode, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree |
| Methods inherited from class ElementWithAttributes |
|---|
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations |
| Methods inherited from class ElementImpl |
|---|
generateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemId |
| Methods inherited from class NodeImpl |
|---|
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface InstructionInfo |
|---|
getSystemId |
| Field Detail |
|---|
String command
int timeoutMsec
protected int sequence
| Constructor Detail |
|---|
public RunElement()
| Method Detail |
|---|
public void prepareAttributes()
throws XPathException
prepareAttributes in class StyleElementXPathException
public Expression compile(Executable exec)
throws XPathException
compile in class StyleElementXPathException
public List getArgInstructions(Executable exec)
throws XPathException
XPathExceptionprotected final long getSequenceNumber()
getSequenceNumber in class NodeImplpublic final boolean hasChildNodes()
hasChildNodes in interface NodeInfohasChildNodes in class NodeImplpublic final AxisIterator enumerateChildren(NodeTest arg0)
public final NodeInfo getFirstChild()
getFirstChild in class NodeImplpublic final NodeInfo getLastChild()
getLastChild in class NodeImplprotected final NodeImpl getNthChild(int arg0)
public String getStringValue()
public CharSequence getStringValueCS()
getStringValueCS in interface ItemgetStringValueCS in interface ValueRepresentationgetStringValueCS in class NodeImplpublic void useChildrenArray(NodeImpl[] arg0)
public void addChild(NodeImpl arg0,
int arg1)
public void compact(int arg0)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||