net.sf.saxon.instruct
Class GlobalParam
java.lang.Object
  
net.sf.saxon.expr.Expression
      
net.sf.saxon.instruct.Instruction
          
net.sf.saxon.instruct.GeneralVariable
              
net.sf.saxon.instruct.GlobalVariable
                  
net.sf.saxon.instruct.GlobalParam
- All Implemented Interfaces: 
 - Serializable, SourceLocator, Binding, Container, EvaluableItem, SequenceIterable, TailCallReturner, InstructionInfoProvider
 
public final class GlobalParam
- extends GlobalVariable
 
The compiled form of a global xsl:param element in the stylesheet or an
 external variable declared in the prolog of a Query. 
 The xsl:param element in XSLT has mandatory attribute name and optional attribute select. It can also
 be specified as required="yes" or required="no". In standard XQuery external variables are always required,
 and no default value can be specified; but Saxon provides an extension pragma that allows a query
 to specify a default.
- See Also:
 - Serialized Form
 
 
 
 
 
 
| Methods inherited from class net.sf.saxon.instruct.GeneralVariable | 
display, evaluateItem, getCardinality, getItemType, getLocalSlotNumber, getNameCode, getRequiredType, getSelectExpression, getSlotNumber, getVariableFingerprint, getVariableName, init, isAssignable, isImplicitlyRequiredParam, isRequiredParam, isTunnelParam, iterate, iterateSubExpressions, optimize, replaceSubExpression, setAssignable, setImplicitlyRequiredParam, setNameCode, setReferenceCount, setRequiredParam, setRequiredType, setSelectExpression, setSlotNumber, setTunnel, setVariableName, simplify, typeCheck | 
 
 
| Methods inherited from class net.sf.saxon.expr.Expression | 
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, effectiveBooleanValue, getColumnNumber, getContainingProcedure, getDependencies, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation | 
 
 
 
GlobalParam
public GlobalParam()
getInstructionNameCode
public int getInstructionNameCode()
- Get the name of this instruction for diagnostic and tracing purposes
- Overrides:
 getInstructionNameCode in class GeneralVariable
 
 
 
evaluateVariable
public ValueRepresentation evaluateVariable(XPathContext context)
                                     throws XPathException
- Evaluate the variable
- Specified by:
 evaluateVariable in interface Binding- Overrides:
 evaluateVariable in class GlobalVariable
 
- Throws:
 XPathException
 
 
Copyright (C) Michael H. Kay. All rights reserved.