public class Namespace extends SimpleNodeConstructor
selectlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
Namespace(Expression name) |
| Modifier and Type | Method and Description |
|---|---|
void |
display(int level,
NamePool pool,
PrintStream out)
Display this instruction as an expression, for diagnostics
|
int |
getCardinality()
Determine the static cardinality of the expression.
|
int |
getInstructionNameCode()
Set the name of this instruction for diagnostic and tracing purposes
|
ItemType |
getItemType(TypeHierarchy th)
Get the item type of the items returned by evaluating this instruction
|
Iterator |
iterateSubExpressions()
Get the immediate sub-expressions of this expression.
|
void |
localTypeCheck(StaticContext env,
ItemType contextItemType) |
TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction.
|
protected void |
promoteInst(PromotionOffer offer)
Offer promotion for subexpressions.
|
Expression |
simplify(StaticContext env)
Simplify an expression.
|
checkContent, computeSpecialProperties, createsNewNodes, evaluateItem, evaluateNameCode, expandChildren, getSelect, iterate, optimize, setSelect, typeCheckappendItem, assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, process, promoteadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnNumber, getLineNumber, getPublicId, getSystemIdpublic Namespace(Expression name)
public int getInstructionNameCode()
getInstructionNameCode in class Instructionpublic Expression simplify(StaticContext env) throws XPathException
Instructionsimplify in interface Expressionsimplify in class SimpleNodeConstructorXPathException - if an error is discovered during expression
rewritingpublic ItemType getItemType(TypeHierarchy th)
InstructiongetItemType in interface ExpressiongetItemType in class Instructionpublic int getCardinality()
ComputedExpressiongetCardinality in interface ExpressiongetCardinality in class ComputedExpressionprotected void promoteInst(PromotionOffer offer)
SimpleNodeConstructorpromoteInst in class SimpleNodeConstructoroffer - details of the offer, for example the offer to move
expressions that don't depend on the context to an outer level in
the containing expressionpublic void localTypeCheck(StaticContext env, ItemType contextItemType)
localTypeCheck in class SimpleNodeConstructorpublic Iterator iterateSubExpressions()
ComputedExpressioniterateSubExpressions in interface ExpressioniterateSubExpressions in class SimpleNodeConstructorpublic 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 void display(int level,
NamePool pool,
PrintStream out)
display in interface Expressiondisplay in class SimpleNodeConstructorlevel - indentation level for this expressionpool - NamePool used to expand any names appearing in the expressionout - Output destination