public class TryExp extends Expression
flags, NEXT_AVAIL_FLAG, noExpressions, type, VALIDATEDcompilerKey, compilerXKey, validateApplyKey, validateXApplyKeynameKey| Constructor and Description |
|---|
TryExp(Expression try_clause,
Expression finally_clause) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCatchClause(Declaration decl,
Expression body) |
void |
apply(CallContext ctx)
Evaluate the expression.
|
protected Type |
calculateType() |
void |
compile(Compilation comp,
Target target) |
CatchClause |
getCatchClauses() |
Expression |
getFinallyClause() |
protected boolean |
mustCompile() |
void |
print(gnu.kawa.io.OutPort ps) |
void |
setCatchClauses(CatchClause catch_clauses) |
protected <R,D> R |
visit(ExpVisitor<R,D> visitor,
D d) |
protected <R,D> void |
visitChildren(ExpVisitor<R,D> visitor,
D d) |
apply0, checkLiteralKeyword, compile, compile, compileButFirst, compileNotePosition, compileWithPosition, compileWithPosition, deepCopy, deepCopy, deepCopy, deepCopy, eval, eval, getColumnNumber, getFileName, getFlag, getFlags, getLineNumber, getPublicId, getSystemId, getType, getTypeRaw, isSingleValue, isStableSourceLocation, makeWhile, match0, maybeSetLine, neverReturns, print, printLineColumn, setFile, setFlag, setFlag, setLine, setLine, setLine, setLine, setLocation, setType, side_effects, toString, validateApply, valueIfConstantapply, check0, check1, check2, check3, check4, checkArgCount, checkN, getReturnType, getSetter, getSourceLocation, isSideEffectFree, match1, match2, match3, match4, matchN, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocationgetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic TryExp(Expression try_clause, Expression finally_clause)
public final CatchClause getCatchClauses()
public final Expression getFinallyClause()
public final void setCatchClauses(CatchClause catch_clauses)
public void addCatchClause(Declaration decl, Expression body)
protected boolean mustCompile()
mustCompile in class Expressionpublic void apply(CallContext ctx) throws java.lang.Throwable
Expressionapply in class Expressionjava.lang.Throwablepublic void compile(Compilation comp, Target target)
compile in class Expressionprotected <R,D> R visit(ExpVisitor<R,D> visitor, D d)
visit in class Expressionprotected <R,D> void visitChildren(ExpVisitor<R,D> visitor, D d)
visitChildren in class Expressionprotected Type calculateType()
calculateType in class Expressionpublic void print(gnu.kawa.io.OutPort ps)
print in class Expression