public final class TryCatchExpression extends Expression
Modifier and Type | Class and Description |
---|---|
static class |
TryCatchExpression.Catch
Catch clause.
|
Constructor and Description |
---|
TryCatchExpression(ASTInfo info,
Expression expression,
Collection<TryCatchExpression.Catch> catches)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
List<TryCatchExpression.Catch> |
getCatches()
Returns the list of catches.
|
Expression |
getExpression()
Returns the expression.
|
List<Expression> |
getResultExpressions()
Returns the result expression.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getType, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, requiresNewNamespace, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressions
getFullText, getLine, getNodeText, getText, toString
contains, getBeginIndex, getEndIndex, getLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFullText, getLine, getNodeText, getText
contains, getBeginIndex, getEndIndex, getLength
public TryCatchExpression(ASTInfo info, Expression expression, Collection<TryCatchExpression.Catch> catches)
info
- expression
- catches
- NullPointerException
- if fullText
or expression
or
catchExpressions
is nullpublic Expression getExpression()
public List<TryCatchExpression.Catch> getCatches()
public <T,E extends Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends Throwable
Expression
accept
in class Expression
E
E extends Throwable
protected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
Expression
basicInterpret
in class Expression
ErrorException
public List<Expression> getResultExpressions()
Expression
getResultExpressions
in class Expression
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.