net.sf.saxon.expr
Class ItemChecker
- EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
public final class ItemChecker
A ItemChecker implements the item type checking of "treat as": that is,
it returns the supplied sequence, checking that all its items are of the correct type
computeCardinality , computeSpecialProperties , displayExpressionName , displayOperator , equals , explain , getBaseExpression , getItemType , hashCode , iterateSubExpressions , optimize , promote , replaceSubExpression , simplify , toString , typeCheck |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
ItemChecker
public ItemChecker(Expression sequence,
ItemType itemType,
RoleLocator role)
Constructor
sequence
- the expression whose value we are checkingitemType
- the required type of the items in the sequencerole
- information used in constructing an error message
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface Expression
- the copy of the original expression
equals
public boolean equals(Object other)
Is this expression the same as another expression?
- equals in interface UnaryExpression
explain
public void explain(ExpressionPresenter out)
Diagnostic print of expression structure. The abstract expression tree
is written to the supplied output destination.
- explain in interface UnaryExpression
getImplementationMethod
public int getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
This method indicates which of these methods is provided. This implementation provides both iterate() and
process() methods natively.
- getImplementationMethod in interface Expression
getRequiredType
public ItemType getRequiredType()
Get the required type
- the required type of the items in the sequence
getRoleLocator
public RoleLocator getRoleLocator()
Get the RoleLocator (used to construct error messages)
process
public void process(XPathContext context)
throws XPathException
Process the instruction, without returning any tail calls
- process in interface Expression
context
- The dynamic context, giving access to the current node,
the current variables, etc.