| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectnet.sf.saxon.expr.Expressionnet.sf.saxon.instruct.Instructionnet.sf.saxon.instruct.GeneralVariablenet.sf.saxon.instruct.WithParampublic class WithParamextends GeneralVariableField Summary |
Fields inherited from class net.sf.saxon.instruct.GeneralVariable | |
evaluationMode, referenceCount, slotNumber, variableQName | |
Fields inherited from class net.sf.saxon.expr.Expression | |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD, locationId, staticProperties | |
Constructor Summary | |
| |
Method Summary | |
static void |
|
ValueRepresentation |
|
int |
|
int |
|
static void |
|
static void |
|
TailCall |
|
static void |
|
static boolean |
|
void |
|
static void |
|
static void |
|
Methods inherited from class net.sf.saxon.instruct.Instruction | |
assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, createsNewNodes, dynamicError, evaluateAsString, evaluateItem, getImplementationMethod, getInstructionInfo, getInstructionNameCode, getItemType, getSourceLocator, isXSLT, iterate, process, processLeavingTail, promote, promoteInst, simplify | |
public static void displayExpressions(WithParam[] params, ExpressionPresenter out)
DIsplay the parameter expressions
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
Evaluate the variable (method exists only to satisfy the interface)
- Specified by:
- evaluateVariable in interface Binding
public int getInstructionNameCode()
Get the name of this instruction (that is xsl:variable, xsl:param etc) for diagnostics
- Overrides:
- getInstructionNameCode in interface GeneralVariable
- Returns:
- the name of this instruction, as a name pool name code
public int getParameterId()
Get the parameter id, which is essentially an alias for the parameter name, unique within a stylesheet
- Returns:
- the parameter id
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)
public static void optimize(ExpressionVisitor visitor, WithParam[] params, ItemType contextItemType) throws XPathException
public TailCall processLeavingTail(XPathContext context) throws XPathException
- Specified by:
- processLeavingTail in interface TailCallReturner
- Overrides:
- processLeavingTail in interface Instruction
public static void promoteParams(WithParam[] params, PromotionOffer offer) throws XPathException
Promote the expressions in a set of with-param elements. This is a convenience method for use by subclasses.
public static boolean replaceXPathExpression(WithParam[] params, Expression original, Expression replacement)
Replace a subexpression
public void setParameterId(int id)
Allocate a number which is essentially an alias for the parameter name, unique within a stylesheet
- Parameters:
id- the parameter id
public static void simplify(WithParam[] params, ExpressionVisitor visitor) throws XPathException
public static void typeCheck(WithParam[] params, ExpressionVisitor visitor, ItemType contextItemType) throws XPathException