|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.instruct.Instruction net.sf.saxon.expr.instruct.GeneralVariable net.sf.saxon.expr.instruct.WithParam
public class WithParam
An instruction derived from a xsl:with-param element in the stylesheet.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.instruct.GeneralVariable |
---|
evaluationMode, referenceCount, 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 | |
---|---|
WithParam()
|
Method Summary | |
---|---|
static WithParam[] |
copy(WithParam[] params)
Copy a set of parameters |
static void |
displayExpressions(WithParam[] params,
ExpressionPresenter out)
DIsplay the parameter expressions |
ValueRepresentation |
evaluateVariable(XPathContext context)
Evaluate the variable (method exists only to satisfy the interface) |
int |
getInstructionNameCode()
Get the name of this instruction (that is xsl:variable, xsl:param etc) for diagnostics |
int |
getParameterId()
Get the parameter id, which is essentially an alias for the parameter name, unique within a stylesheet |
static void |
getXPathExpressions(WithParam[] params,
List list)
Get the XPath expressions used in an array of WithParam parameters (add them to the supplied list) |
boolean |
isTypeChecked()
Ask whether static type checking has been done |
static void |
optimize(ExpressionVisitor visitor,
WithParam[] params,
ItemType contextItemType)
|
TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction. |
static void |
promoteParams(Expression parent,
WithParam[] params,
PromotionOffer offer)
Promote the expressions in a set of with-param elements. |
static boolean |
replaceXPathExpression(WithParam[] params,
Expression original,
Expression replacement)
Replace a subexpression |
void |
setParameterId(int id)
Allocate a number which is essentially an alias for the parameter name, unique within a stylesheet |
void |
setTypeChecked(boolean checked)
Say whether this parameter will have been typechecked by the caller to ensure it satisfies the required type, in which case the callee need not do a dynamic type check |
static void |
simplify(WithParam[] params,
ExpressionVisitor visitor)
|
static void |
typeCheck(WithParam[] params,
ExpressionVisitor visitor,
ItemType contextItemType)
|
Methods inherited from class net.sf.saxon.expr.instruct.GeneralVariable |
---|
copy, evaluateItem, explain, getCardinality, getEvaluationMode, getItemType, getLocalSlotNumber, getRequiredType, getSelectExpression, getSelectValue, getSlotNumber, getVariableQName, init, isAssignable, isGlobal, 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 javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public WithParam()
Method Detail |
---|
public void setParameterId(int id)
id
- the parameter idpublic void setTypeChecked(boolean checked)
checked
- true if the caller has done static type checking against the required typepublic int getParameterId()
public int getInstructionNameCode()
GeneralVariable
getInstructionNameCode
in class GeneralVariable
public TailCall processLeavingTail(XPathContext context) throws XPathException
Instruction
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class Instruction
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
XPathException
public static void simplify(WithParam[] params, ExpressionVisitor visitor) throws XPathException
XPathException
public static void typeCheck(WithParam[] params, ExpressionVisitor visitor, ItemType contextItemType) throws XPathException
XPathException
public static void optimize(ExpressionVisitor visitor, WithParam[] params, ItemType contextItemType) throws XPathException
XPathException
public static void promoteParams(Expression parent, WithParam[] params, PromotionOffer offer) throws XPathException
XPathException
public static WithParam[] copy(WithParam[] params)
params
- the parameters to be copied
public static void getXPathExpressions(WithParam[] params, List list)
public static void displayExpressions(WithParam[] params, ExpressionPresenter out)
public static boolean replaceXPathExpression(WithParam[] params, Expression original, Expression replacement)
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
context
- the XPath dynamic evaluation context
XPathException
public boolean isTypeChecked()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |