|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.GeneralVariable net.sf.saxon.instruct.Assign
public class Assign
saxon:assign element in stylesheet. The saxon:assign element has mandatory attribute name and optional attribute expr. It also allows xsl:extension-element-prefixes etc.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
---|---|
Assign()
|
Method Summary | |
---|---|
ValueRepresentation |
evaluateVariable(XPathContext context)
Evaluate the variable (method exists only to satisfy the interface) |
void |
explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
void |
fixup(Binding binding)
Fix up this binding reference to a binding |
int |
getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes |
int |
getIntrinsicDependencies()
Determine the intrinsic dependencies of an expression, that is, those which are not derived from the dependencies of its subexpressions. |
TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction. |
Expression |
promote(PromotionOffer offer)
Offer promotion for this subexpression. |
void |
setStaticType(SequenceType type,
Value constantValue,
int properties)
Fix up the static type of this variable reference; optionally, supply a constant value for the variable. |
Methods inherited from class net.sf.saxon.instruct.Instruction |
---|
computeCardinality, computeSpecialProperties, createsNewNodes, evaluateAsString, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, process |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public Assign()
Method Detail |
---|
public void setStaticType(SequenceType type, Value constantValue, int properties)
BindingReference
setStaticType
in interface BindingReference
public void fixup(Binding binding)
BindingReference
fixup
in interface BindingReference
public int getIntrinsicDependencies()
Expression
getIntrinsicDependencies
in class Expression
public Expression promote(PromotionOffer offer) throws XPathException
promote
in class Instruction
offer
- details of the offer, for example the offer to move
expressions that don't depend on the context to an outer level in
the containing expression
XPathException
- if any error is detectedpublic int getInstructionNameCode()
getInstructionNameCode
in class GeneralVariable
public TailCall processLeavingTail(XPathContext context) throws XPathException
Instruction
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class Instruction
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
XPathException
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
evaluateVariable
in interface Binding
context
- the XPath dynamic evaluation context
XPathException
public void explain(ExpressionPresenter out)
explain
in class GeneralVariable
out
- the expression presenter used to display the structure
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |