public class WithParam extends GeneralVariable
evaluationMode, referenceCount, slotNumber, variableQNameEVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties| Constructor and Description |
|---|
WithParam() |
| Modifier and Type | Method and Description |
|---|---|
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,
java.util.List list)
Get the XPath expressions used in an array of WithParam parameters (add them to the supplied list)
|
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(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
|
static void |
simplify(WithParam[] params,
ExpressionVisitor visitor) |
static void |
typeCheck(WithParam[] params,
ExpressionVisitor visitor,
ItemType contextItemType) |
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, typeCheckassembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, createsNewNodes, dynamicError, evaluateAsString, getConstructType, getImplementationMethod, getSourceLocator, isXSLT, process, promoteaddToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, findParentOf, getColumnNumber, getColumnNumber, getContainer, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, markTailFunctionCalls, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, toString, typeErrorpublic void setParameterId(int id)
id - the parameter idpublic int getParameterId()
public int getInstructionNameCode()
GeneralVariablegetInstructionNameCode in class GeneralVariablepublic TailCall processLeavingTail(XPathContext context) throws XPathException
InstructionprocessLeavingTail in interface TailCallReturnerprocessLeavingTail in class Instructioncontext - The dynamic context of the transformation, giving access to the current node,
the current variables, etc.XPathExceptionpublic static void simplify(WithParam[] params, ExpressionVisitor visitor) throws XPathException
XPathExceptionpublic static void typeCheck(WithParam[] params, ExpressionVisitor visitor, ItemType contextItemType) throws XPathException
XPathExceptionpublic static void optimize(ExpressionVisitor visitor, WithParam[] params, ItemType contextItemType) throws XPathException
XPathExceptionpublic static void promoteParams(WithParam[] params, PromotionOffer offer) throws XPathException
XPathExceptionpublic static void getXPathExpressions(WithParam[] params, java.util.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 contextXPathException