net.sf.saxon.instruct
Class DefiningVariable
java.lang.Object
|
+--net.sf.saxon.instruct.Instruction
|
+--net.sf.saxon.instruct.GeneralVariable
|
+--net.sf.saxon.instruct.DefiningVariable
- All Implemented Interfaces:
- Binding, Instr, Locatable, java.io.Serializable, javax.xml.transform.SourceLocator
- Direct Known Subclasses:
- Param, Variable
- public abstract class DefiningVariable
- extends GeneralVariable
- implements Binding
This class defines common behaviour across the compiled instructions for xsl:variable and xsl:param.
In particular, this class contains the method used to evaluate the variable.
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.instruct.GeneralVariable |
containsLocals, getCardinality, getInstructionName, getItemType, getSelectExpression, getSelectValue, getVariableFingerprint, init, isAssignable, isGlobal, isRequiredParam, isTunnelParam, setAssignable, setContainsLocals, setGlobal, setRequiredParam, setSelect, setTunnel, setVariableFingerprint |
Methods inherited from class net.sf.saxon.instruct.Instruction |
assembleParams, assembleTunnelParams, displayChildren, dynamicError, dynamicError, getChildren, getColumnNumber, getExecutable, getInstructionNamespace, getLineNumber, getPublicId, getSourceLocator, getSystemId, process, processChildren, processChildrenLeavingTail, processLeavingTail, recoverableError, setChildren, setExecutable, setSourceLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefiningVariable
public DefiningVariable()
getSlotNumber
public int getSlotNumber()
setSlotNumber
public void setSlotNumber(int s)
getRequiredType
public SequenceType getRequiredType()
setRequiredType
public void setRequiredType(SequenceType t)
setVariableName
public void setVariableName(java.lang.String s)
getVariableName
public java.lang.String getVariableName()
evaluateVariable
public Value evaluateVariable(XPathContext c)
throws XPathException
- Evaluate the variable
- Specified by:
evaluateVariable
in interface Binding
XPathException