|
|||||||||
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.expr.instruct.Instruction
net.sf.saxon.expr.instruct.GeneralVariable
net.sf.saxon.expr.instruct.GlobalVariable
net.sf.saxon.expr.instruct.GlobalParam
public final class GlobalParam
The compiled form of a global xsl:param element in an XSLT 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 1.0 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. XQuery 1.1 adds standard syntax for defining a default value.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.instruct.GeneralVariable |
---|
evaluationMode, referenceCount, requiredType, select, slotNumber, variableQName |
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD |
Constructor Summary | |
---|---|
GlobalParam()
|
Method Summary | |
---|---|
ValueRepresentation |
evaluateVariable(XPathContext context)
Evaluate the variable |
int |
getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes |
Methods inherited from class net.sf.saxon.expr.instruct.GlobalVariable |
---|
actuallyEvaluate, getContainerGranularity, getExecutable, getHostLanguage, getSelectValue, isGlobal, isIndexedVariable, lookForCycles, processLeavingTail, setContainsLocals, setDependencies, setExecutable, setIndexedVariable |
Methods inherited from class net.sf.saxon.expr.instruct.GeneralVariable |
---|
copy, evaluateItem, explain, getCardinality, getEvaluationMode, getItemType, getLocalSlotNumber, getRequiredType, getSelectExpression, getSlotNumber, getVariableQName, init, isAssignable, isImplicitlyRequiredParam, isRequiredParam, isTunnelParam, iterate, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, setAssignable, setImplicitlyRequiredParam, setReferenceCount, setRequiredParam, setRequiredType, setSelectExpression, setSlotNumber, setTunnel, setVariableQName, simplify, typeCheck |
Methods inherited from class net.sf.saxon.expr.instruct.Instruction |
---|
assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, createsNewNodes, dynamicError, evaluateAsString, getConstructType, getExpressionName, getImplementationMethod, getInstructionName, getIteratorFromProcessMethod, getSourceLocator, isXSLT, process, promote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.Container |
---|
getLocationProvider |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public GlobalParam()
Method Detail |
---|
public int getInstructionNameCode()
getInstructionNameCode
in class GeneralVariable
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
evaluateVariable
in interface Binding
evaluateVariable
in class GlobalVariable
context
- the XPath dynamic evaluation context
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |