public class TryCatch extends Expression
| Modifier and Type | Class and Description |
|---|---|
static class |
TryCatch.CatchClause |
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD| Constructor and Description |
|---|
TryCatch(Expression tryExpr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCatchExpression(QNameTest test,
Expression catchExpr) |
int |
computeCardinality()
Determine the cardinality of the function.
|
Expression |
copy()
Copy an expression.
|
boolean |
equals(Object other)
Is this expression the same as another expression?
|
Item |
evaluateItem(XPathContext c)
Evaluate as a singleton item
|
void |
export(ExpressionPresenter out)
Diagnostic print of expression structure.
|
List<TryCatch.CatchClause> |
getCatchClauses()
Get the list of catch clauses
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the TryCatch expression
|
String |
getExpressionName()
Get a name identifying the kind of expression, in terms meaningful to a user.
|
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
ItemType |
getItemType()
Determine the item type of the value returned by the function
|
protected StreamingAdjunct |
getStreamingAdjunct()
Get a class that supports streamed evaluation of this expression
|
Expression |
getTryExpr()
Get the "try" expression
|
int |
hashCode()
Hashcode supporting equals()
|
SequenceIterator |
iterate(XPathContext c)
Iterate over the results of the function
|
Iterable<Operand> |
operands()
Get the immediate sub-expressions of this expression, with information about the relationship
of each expression to its parent expression.
|
Expression |
promote(PromotionOffer offer)
Offer promotion for this subexpression.
|
addToPathMap, adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeSpecialProperties, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getPosture, getPostureAndSweepIfKnown, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operandSparseList, optimize, optimizeChildren, optimizeForType, process, promoteChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setFiltered, setFlattened, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplify, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toShortString, toStreamingPattern, toString, typeCheck, typeCheckChildren, typeError, unorderedpublic TryCatch(Expression tryExpr)
public void addCatchExpression(QNameTest test, Expression catchExpr)
public Expression getTryExpr()
public List<TryCatch.CatchClause> getCatchClauses()
public int computeCardinality()
computeCardinality in class ExpressionStaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.EXACTLY_ONE, StaticProperty.ALLOWS_ONE_OR_MORE,
StaticProperty.ALLOWS_ZERO_OR_MOREpublic ItemType getItemType()
getItemType in class Expressionpublic Iterable<Operand> operands()
operands in class Expressionpublic Expression promote(PromotionOffer offer) throws XPathException
This method must be overridden for any Expression that has subexpressions.
promote in class Expressionoffer - 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 int getImplementationMethod()
getImplementationMethod in class ExpressionExpression.ITERATE_METHOD or Expression.EVALUATE_METHOD or
Expression.PROCESS_METHODpublic boolean equals(Object other)
public Expression copy()
copy in class Expressionpublic Item evaluateItem(XPathContext c) throws XPathException
evaluateItem in class Expressionc - the dynamic XPath evaluation contextXPathException - if any dynamic error occurs evaluating the
expressionpublic SequenceIterator iterate(XPathContext c) throws XPathException
iterate in class Expressionc - supplies the context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic String getExpressionName()
getExpressionName in class Expressionpublic void export(ExpressionPresenter out)
export in class Expressionout - the expression presenter used to display the structurepublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class Expressionprotected StreamingAdjunct getStreamingAdjunct()
getStreamingAdjunct in class ExpressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.