net.sf.saxon.instruct

Class WithParam

public class WithParam extends GeneralVariable

An instruction derived from a xsl:with-param element in the stylesheet.
Constructor Summary
WithParam()
Method Summary
ValueRepresentationevaluateVariable(XPathContext context)
Evaluate the variable (method exists only to satisfy the interface)
intgetInstructionNameCode()
static voidgetXPathExpressions(WithParam[] params, List list)
Get the XPath expressions used in an array of WithParam parameters (add them to the supplied list)
static voidoptimize(Optimizer opt, WithParam[] params, StaticContext env, ItemType contextItemType)
TailCallprocessLeavingTail(XPathContext context)
static voidpromoteParams(WithParam[] params, PromotionOffer offer)
Promote the expressions in a set of with-param elements.
static voidsimplify(WithParam[] params, StaticContext env)
static voidtypeCheck(WithParam[] params, StaticContext env, ItemType contextItemType)

Constructor Detail

WithParam

public WithParam()

Method Detail

evaluateVariable

public ValueRepresentation evaluateVariable(XPathContext context)
Evaluate the variable (method exists only to satisfy the interface)

getInstructionNameCode

public int getInstructionNameCode()

getXPathExpressions

public static void getXPathExpressions(WithParam[] params, List list)
Get the XPath expressions used in an array of WithParam parameters (add them to the supplied list)

optimize

public static void optimize(Optimizer opt, WithParam[] params, StaticContext env, ItemType contextItemType)

processLeavingTail

public TailCall processLeavingTail(XPathContext context)

promoteParams

public static void promoteParams(WithParam[] params, PromotionOffer offer)
Promote the expressions in a set of with-param elements. This is a convenience method for use by subclasses.

simplify

public static void simplify(WithParam[] params, StaticContext env)

typeCheck

public static void typeCheck(WithParam[] params, StaticContext env, ItemType contextItemType)