orc.ast.extended.expression
Class Catch
java.lang.Object
orc.ast.extended.expression.Expression
orc.ast.extended.expression.Catch
- All Implemented Interfaces:
- ASTNode, Locatable, Located
public class Catch
- extends Expression
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
handlers
public java.util.List<CatchHandler> handlers
tryBlock
public Expression tryBlock
typeParams
protected java.util.List<java.lang.String> typeParams
argTypes
protected java.util.List<Type> argTypes
resultType
protected Type resultType
Catch
public Catch(Expression tryBlock,
java.util.List<CatchHandler> handlers)
simplify
public Expression simplify()
throws CompilationException
- Description copied from class:
Expression
- Simplify an expression which occurs in a call (non-nested) position.
- Specified by:
simplify
in class Expression
- Returns:
- The simplified expression
- Throws:
CompilationException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
accept
public <E> E accept(Visitor<E> visitor)