Package org.rumbledb.expressions.control
Class TryCatchExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.control.TryCatchExpression
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceType
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionTryCatchExpression
(Expression tryExpression, Map<String, Expression> catchExpressions, Expression catchAllExpression, ExceptionMetadata metadataFromContext) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.boolean
boolean
Returns all children nodes as a list.getExpressionCatching
(String error) void
serializeToJSONiq
(StringBuffer sb, int indent) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getExpressionClassification, getStaticContext, getStaticContextForRuntime, getStaticSequenceType, isSequential, isUnset, isUpdating, isUpdatingNonSequential, print, setExpressionClassification, setSequential, setStaticContext, setStaticSequenceType
Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Constructor Details
-
TryCatchExpression
public TryCatchExpression(Expression tryExpression, Map<String, Expression> catchExpressions, Expression catchAllExpression, ExceptionMetadata metadataFromContext)
-
-
Method Details
-
getTryExpression
-
getErrorsCaught
-
getCatchExpressions
-
catches
-
catchesAll
public boolean catchesAll() -
getExpressionCatching
-
getExpressionCatchingAll
-
getChildren
Description copied from class:Node
Returns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildren
in classNode
- Returns:
- the children nodes as a list.
-
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
accept
Description copied from class:Node
Accept method for the visitor pattern.
-