public class TryExp extends Expression
flags, NEXT_AVAIL_FLAG, noExpressions, VALIDATED
compilerKey, validateApplyKey
nameKey
Constructor and Description |
---|
TryExp(Expression try_clause,
Expression finally_clause) |
Modifier and Type | Method and Description |
---|---|
void |
apply(CallContext ctx)
Evaluate the expression.
|
void |
compile(Compilation comp,
Target target) |
CatchClause |
getCatchClauses() |
Expression |
getFinallyClause() |
Type |
getType()
Return the Type used to represent the values of this Expression.
|
protected boolean |
mustCompile() |
void |
print(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, compile, compile, compileButFirst, compileNotePosition, compileWithPosition, compileWithPosition, deepCopy, deepCopy, deepCopy, deepCopy, eval, eval, getColumnNumber, getFileName, getFlag, getFlags, getLineNumber, getPublicId, getSystemId, isSingleValue, isStableSourceLocation, makeWhile, match0, print, printLineColumn, setFile, setFlag, setFlag, setLine, setLine, setLine, setLine, setLocation, side_effects, toString, validateApply, valueIfConstant
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getReturnType, getSetter, getSourceLocation, isSideEffectFree, match1, match2, match3, match4, matchN, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public TryExp(Expression try_clause, Expression finally_clause)
public final CatchClause getCatchClauses()
public final Expression getFinallyClause()
public final void setCatchClauses(CatchClause catch_clauses)
protected boolean mustCompile()
mustCompile
in class Expression
public void apply(CallContext ctx) throws java.lang.Throwable
Expression
apply
in class Expression
java.lang.Throwable
public void compile(Compilation comp, Target target)
compile
in class Expression
protected <R,D> R visit(ExpVisitor<R,D> visitor, D d)
visit
in class Expression
protected <R,D> void visitChildren(ExpVisitor<R,D> visitor, D d)
visitChildren
in class Expression
public Type getType()
Expression
getType
in class Expression
public void print(OutPort ps)
print
in class Expression