public class TryBlockEnv extends ProxyEnv
MAX_LEGAL_DEPTH| Constructor and Description |
|---|
TryBlockEnv(Env parent,
Block finally_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(Class<? extends Throwable> type,
Continuation k)
Handlers can be only added immediately after instantiation.
|
Continuation |
getBreakAddress(String label)
If we see a break statement, where should we go?
|
Continuation |
getContinueAddress(String label)
If we see a continue statement, where should we go?
|
Continuation |
getExceptionHandler(Class<? extends Throwable> type)
Finds the exception handler that catches a
Throwable instance of this type. |
Continuation |
getReturnAddress()
Where should the return statement return to?
|
buildStackTraceElements, closureOwner, declareVariable, getDepth, getInvoker, getLocalVariable, getLocalVariableType, setLocalVariablepublic void addHandler(Class<? extends Throwable> type, Continuation k)
public Continuation getExceptionHandler(Class<? extends Throwable> type)
EnvThrowable instance of this type.getExceptionHandler in interface EnvgetExceptionHandler in class ProxyEnvpublic Continuation getReturnAddress()
EnvgetReturnAddress in interface EnvgetReturnAddress in class ProxyEnvpublic Continuation getBreakAddress(String label)
EnvgetBreakAddress in interface EnvgetBreakAddress in class ProxyEnvlabel - Specifies the loop to break from. null for nearest loop.public Continuation getContinueAddress(String label)
EnvgetContinueAddress in interface EnvgetContinueAddress in class ProxyEnvlabel - Specifies the loop to repeat. null for nearest loop.Copyright © 2011–2019. All rights reserved.