|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.ParentNodeConstructor
net.sf.saxon.instruct.ElementCreator
net.sf.saxon.instruct.Copy
public class Copy
Handler for xsl:copy elements in stylesheet.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
---|---|
Copy(boolean copyNamespaces,
boolean inheritNamespaces,
SchemaType schemaType,
int validation)
|
Method Summary | |
---|---|
void |
display(int level,
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 |
String |
getNewBaseURI(XPathContext context)
Get the base URI of a copied element node (the base URI is retained in the new copy) |
TailCall |
processLeavingTail(XPathContext context)
Evaluate the instruction to produce a new element node. |
Expression |
simplify(StaticContext env)
Simplify an expression. |
Methods inherited from class net.sf.saxon.instruct.ElementCreator |
---|
computeSpecialProperties, getImplementationMethod, isInheritNamespaces, isValidating, setValidationMode, suppressValidation |
Methods inherited from class net.sf.saxon.instruct.ParentNodeConstructor |
---|
computeCardinality, createsNewNodes, getBaseURI, getCardinality, getContentExpression, getSchemaType, getValidationMode, isLazyConstruction, isNamespaceSensitive, iterateSubExpressions, optimize, replaceSubExpression, setBaseURI, setContentExpression, setLazyConstruction, setSchemaType, typeCheck |
Methods inherited from class net.sf.saxon.instruct.Instruction |
---|
appendItem, evaluateAsString, getInstructionInfo, getSourceLocator, isXSLT, iterate, process, promote |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public Copy(boolean copyNamespaces, boolean inheritNamespaces, SchemaType schemaType, int validation)
Method Detail |
---|
public Expression simplify(StaticContext env) throws XPathException
simplify
in class ParentNodeConstructor
XPathException
- if an error is discovered during expression rewritingpublic int getInstructionNameCode()
getInstructionNameCode
in class Instruction
public ItemType getItemType(TypeHierarchy th)
getItemType
in class ElementCreator
th
-
public int getNameCode(XPathContext context) throws XPathException
getNameCode
in class ElementCreator
context
-
XPathException
public String getNewBaseURI(XPathContext context)
getNewBaseURI
in class ElementCreator
context
-
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 EvaluableItem
evaluateItem
in class ElementCreator
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic void display(int level, PrintStream out, Configuration config)
display
in class Expression
level
- indentation level for this expressionout
- config
-
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |