public class Namespace extends SimpleNodeConstructor
select
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
Namespace(Expression name) |
Modifier and Type | Method and Description |
---|---|
void |
display(int level,
java.io.PrintStream out,
Configuration config)
Display this instruction as an expression, for diagnostics
|
int |
evaluateNameCode(XPathContext context) |
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
|
java.util.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.
|
boolean |
replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression
|
Expression |
simplify(StaticContext env)
Simplify an expression.
|
checkContent, computeSpecialProperties, createsNewNodes, evaluateItem, expandChildren, getSelect, iterate, optimize, setSelect, typeCheck
appendItem, assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, process, promote
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
public Namespace(Expression name)
public int getInstructionNameCode()
getInstructionNameCode
in class Instruction
public Expression simplify(StaticContext env) throws XPathException
Instruction
simplify
in interface Expression
simplify
in class SimpleNodeConstructor
env
- the static contextXPathException
- if an error is discovered during expression
rewritingpublic ItemType getItemType(TypeHierarchy th)
Instruction
getItemType
in interface Expression
getItemType
in class Instruction
public int getCardinality()
ComputedExpression
getCardinality
in interface Expression
getCardinality
in class ComputedExpression
protected void promoteInst(PromotionOffer offer) throws XPathException
SimpleNodeConstructor
promoteInst
in class SimpleNodeConstructor
offer
- 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 expressionXPathException
- if any error is detectedpublic void localTypeCheck(StaticContext env, ItemType contextItemType)
localTypeCheck
in class SimpleNodeConstructor
public java.util.Iterator iterateSubExpressions()
ComputedExpression
iterateSubExpressions
in interface Expression
iterateSubExpressions
in class SimpleNodeConstructor
public boolean replaceSubExpression(Expression original, Expression replacement)
replaceSubExpression
in interface Container
replaceSubExpression
in class SimpleNodeConstructor
original
- the original subexpressionreplacement
- the replacement subexpressionpublic int evaluateNameCode(XPathContext context) throws XPathException
evaluateNameCode
in class SimpleNodeConstructor
XPathException
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 void display(int level, java.io.PrintStream out, Configuration config)
display
in interface Expression
display
in class SimpleNodeConstructor
level
- indentation level for this expressionout
- Output destination