public class Copy extends ElementCreator
inheritNamespaces
content, validation
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
Copy(boolean copyNamespaces,
boolean inheritNamespaces,
SchemaType schemaType,
int validation) |
Modifier and Type | Method and Description |
---|---|
void |
display(int level,
NamePool pool,
PrintStream out)
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
|
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.
|
computeSpecialProperties, getImplementationMethod, getValidationMode, setValidationMode, suppressValidation
createsNewNodes, getCardinality, getContentExpression, getSchemaType, getValidationAction, isLazyConstruction, isNamespaceSensitive, iterateSubExpressions, optimize, promoteInst, setContentExpression, setLazyConstruction, setSchemaType, simplify, typeCheck, verifyLazyConstruction
appendItem, assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, getInstructionInfo, getSourceLocator, isXSLT, iterate, process, promote
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, typeError, typeError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnNumber, getLineNumber, getPublicId, getSystemId
public Copy(boolean copyNamespaces, boolean inheritNamespaces, SchemaType schemaType, int validation)
public int getInstructionNameCode()
getInstructionNameCode
in class Instruction
public ItemType getItemType(TypeHierarchy th)
getItemType
in interface Expression
getItemType
in class ElementCreator
th
- public int getNameCode(XPathContext context) throws XPathException
getNameCode
in class ElementCreator
context
- XPathException
protected void outputNamespaceNodes(XPathContext context, Receiver receiver) throws XPathException
outputNamespaceNodes
in class ElementCreator
context
- The execution contextreceiver
- the Receiver where the namespace nodes are to be writtenXPathException
public int[] getActiveNamespaces() throws XPathException
getActiveNamespaces
in class ElementCreator
XPathException
public TailCall processLeavingTail(XPathContext context) throws XPathException
ElementCreator
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class ElementCreator
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.XPathException
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class ElementCreator
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic void display(int level, NamePool pool, PrintStream out)
level
- indentation level for this expressionout
- pool
- NamePool used to expand any names appearing in the expression