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

Field Summary
 
Fields inherited from class net.sf.saxon.instruct.GeneralVariable
variableFingerprint
 
Fields inherited from class net.sf.saxon.instruct.Instruction
children
 
Constructor Summary
DefiningVariable()
           
 
Method Summary
 Value evaluateVariable(XPathContext c)
          Evaluate the variable
 SequenceType getRequiredType()
           
 int getSlotNumber()
           
 java.lang.String getVariableName()
           
 void setRequiredType(SequenceType t)
           
 void setSlotNumber(int s)
           
 void setVariableName(java.lang.String s)
           
 
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
 

Constructor Detail

DefiningVariable

public DefiningVariable()
Method Detail

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