| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.CopyOf
Constructor Summary | |
public | CopyOf(Expression select, boolean copyNamespaces, int validation, SchemaType schemaType, boolean rejectDuplicatAttributes) |
Method Summary | |
protected static void | copyAttribute(NodeInfo source, SchemaType schemaType, int validation, Instruction instruction, XPathContext context, boolean rejectDuplicates) | final public boolean | createsNewNodes() Determine whether this instruction creates new nodes. | public void | display(int level, NamePool pool, PrintStream out) Diagnostic print of expression structure. | public Item | evaluateItem(XPathContext context) | public int | getCardinality() | public int | getDependencies() | public int | getImplementationMethod() An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
This method indicates which of these methods is provided. | public int | getInstructionNameCode() | public ItemType | getItemType(TypeHierarchy th) | public SequenceIterator | iterate(XPathContext context) | public Iterator | iterateSubExpressions() | public Object | map(Item item, XPathContext context) Map one item to a sequence.
Parameters: item - The item to be mapped.If context is supplied, this must be the same as context.currentItem(). Parameters: context - The processing context. | public Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType) | public TailCall | processLeavingTail(XPathContext context) | protected void | promoteInst(PromotionOffer offer) | public void | setReadOnce(boolean b) | public void | setRequireDocumentOrElement(boolean requireDocumentOrElement) For XQuery, the operand (select) must be a single element or document node. | public Expression | simplify(StaticContext env) | public Expression | typeCheck(StaticContext env, ItemType contextItemType) |
CopyOf | public CopyOf(Expression select, boolean copyNamespaces, int validation, SchemaType schemaType, boolean rejectDuplicatAttributes)(Code) | | |
createsNewNodes | final public boolean createsNewNodes()(Code) | | Determine whether this instruction creates new nodes.
The result depends on the type of the select expression.
|
display | public void display(int level, NamePool pool, PrintStream out)(Code) | | Diagnostic print of expression structure. The expression is written to the System.err
output stream
Parameters: level - indentation level for this expression Parameters: out - |
getCardinality | public int getCardinality()(Code) | | |
getDependencies | public int getDependencies()(Code) | | |
getImplementationMethod | public int getImplementationMethod()(Code) | | An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
This method indicates which of these methods is provided. This implementation provides both iterate() and
process() methods natively.
|
getInstructionNameCode | public int getInstructionNameCode()(Code) | | Get the name of this instruction, for diagnostics and tracing
|
map | public Object map(Item item, XPathContext context) throws XPathException(Code) | | Map one item to a sequence.
Parameters: item - The item to be mapped.If context is supplied, this must be the same as context.currentItem(). Parameters: context - The processing context. This is supplied only for mapping constructs thatset the context node, position, and size. Otherwise it is null. either (a) a SequenceIterator over the sequence of items that the supplied inputitem maps to, or (b) an Item if it maps to a single item, or (c) null if it maps to an emptysequence. |
processLeavingTail | public TailCall processLeavingTail(XPathContext context) throws XPathException(Code) | | Process this xsl:copy-of instruction
Parameters: context - the dynamic context for the transformation null - this implementation of the method never returns a TailCall |
setReadOnce | public void setReadOnce(boolean b)(Code) | | |
setRequireDocumentOrElement | public void setRequireDocumentOrElement(boolean requireDocumentOrElement)(Code) | | For XQuery, the operand (select) must be a single element or document node.
Parameters: requireDocumentOrElement - |
|
|