java.io.Serializable, javax.xml.transform.SourceLocator, Container, Expression, TailCallReturner, InstructionInfoProviderpublic class Copy extends ElementCreator
locationId, staticPropertiesinheritNamespaces, validatingEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHODcontent, validation| Constructor | Description |
|---|---|
Copy(boolean copyNamespaces,
boolean inheritNamespaces,
SchemaType schemaType,
int validation) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
display(int level,
java.io.PrintStream out,
Configuration config) |
Diagnostic print of expression structure.
|
Item |
evaluateItem(XPathContext context) |
Evaluate as an expression.
|
int[] |
getActiveNamespaces() |
Callback to get a list of the intrinsic namespaces that need to be generated for the element.
|
int |
getInstructionNameCode() |
Get the name of this instruction for diagnostic and tracing purposes
|
ItemType |
getItemType(TypeHierarchy th) |
Get the item type of the result of this instruction.
|
int |
getNameCode(XPathContext context) |
Callback from ElementCreator when constructing an element
|
java.lang.String |
getNewBaseURI(XPathContext context) |
Get the base URI of a copied element node (the base URI is retained in the new copy)
|
protected void |
outputNamespaceNodes(XPathContext context,
Receiver receiver) |
Callback to output namespace nodes for the new element.
|
TailCall |
processLeavingTail(XPathContext context) |
Evaluate the instruction to produce a new element node.
|
Expression |
simplify(StaticContext env) |
Simplify an expression.
|
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, typeErrorcheckContentForAttributes, computeSpecialProperties, getImplementationMethod, getValidationMode, isInheritNamespaces, isValidating, setValidationMode, suppressValidationappendItem, assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, getInstructionInfo, getSourceLocator, isXSLT, iterate, process, promoteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatesNewNodes, getBaseURI, getCardinality, getContentExpression, getSchemaType, getValidationAction, isLazyConstruction, isNamespaceSensitive, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, setBaseURI, setContentExpression, setLazyConstruction, setSchemaType, typeCheck, verifyLazyConstructionpublic Copy(boolean copyNamespaces,
boolean inheritNamespaces,
SchemaType schemaType,
int validation)
public Expression simplify(StaticContext env) throws XPathException
simplify in interface Expressionsimplify in class ParentNodeConstructorenv - the static contextXPathException - if an error is discovered during expression rewritingpublic int getInstructionNameCode()
getInstructionNameCode in class Instructionpublic ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class ElementCreatorth - public int getNameCode(XPathContext context) throws XPathException
getNameCode in class ElementCreatorcontext - XPathExceptionpublic java.lang.String getNewBaseURI(XPathContext context)
getNewBaseURI in class ElementCreatorcontext - protected void outputNamespaceNodes(XPathContext context, Receiver receiver) throws XPathException
outputNamespaceNodes in class ElementCreatorcontext - The execution contextreceiver - the Receiver where the namespace nodes are to be writtenXPathExceptionpublic int[] getActiveNamespaces()
throws XPathException
getActiveNamespaces in class ElementCreatorXPathExceptionpublic TailCall processLeavingTail(XPathContext context) throws XPathException
ElementCreatorprocessLeavingTail in interface TailCallReturnerprocessLeavingTail in class ElementCreatorcontext - The dynamic context of the transformation, giving access to the current node,
the current variables, etc.XPathExceptionpublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ElementCreatorcontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic void display(int level,
java.io.PrintStream out,
Configuration config)
level - indentation level for this expressionout - config -