java.io.Serializable
, javax.xml.transform.SourceLocator
, Binding
, Container
, Expression
, TailCallReturner
, InstructionInfoProvider
public class WithParam extends GeneralVariable
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
evaluationMode, nameCode, referenceCount, requiredType, select, slotNumber
Constructor | Description |
---|---|
WithParam() |
Modifier and Type | Method | Description |
---|---|---|
ValueRepresentation |
evaluateVariable(XPathContext context) |
Evaluate the variable (method exists only to satisfy the interface)
|
int |
getInstructionNameCode() |
Get the namecode of the instruction for use in diagnostics
|
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(Optimizer opt,
WithParam[] params,
StaticContext env,
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
|
static void |
simplify(WithParam[] params,
StaticContext env) |
|
static void |
typeCheck(WithParam[] params,
StaticContext env,
ItemType contextItemType) |
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
display, evaluateItem, getCardinality, getItemType, getLocalSlotNumber, getNameCode, getRequiredType, getSelectExpression, getSelectValue, getSlotNumber, getVariableFingerprint, getVariableName, init, isAssignable, isGlobal, isImplicitlyRequiredParam, isRequiredParam, isTunnelParam, iterate, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, setAssignable, setImplicitlyRequiredParam, setNameCode, setReferenceCount, setRequiredParam, setRequiredType, setSelectExpression, setSlotNumber, setTunnel, setVariableName, simplify, typeCheck
appendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, createsNewNodes, dynamicError, evaluateAsString, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, process, promote
public int getInstructionNameCode()
Instruction
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, StaticContext env) throws XPathException
XPathException
public static void typeCheck(WithParam[] params, StaticContext env, ItemType contextItemType) throws XPathException
XPathException
public static void optimize(Optimizer opt, WithParam[] params, StaticContext env, ItemType contextItemType) throws XPathException
XPathException
public static void promoteParams(WithParam[] params, PromotionOffer offer) throws XPathException
XPathException
public static void getXPathExpressions(WithParam[] params, java.util.List list)
public static boolean replaceXPathExpression(WithParam[] params, Expression original, Expression replacement)
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
XPathException