public interface Env extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
buildStackTraceElements(List<StackTraceElement> stack,
int depth)
Builds the current call stack information for
Throwable.getStackTrace(). |
Object |
closureOwner()
Closure or 'this' object that surrounds the currently executing code.
|
void |
declareVariable(Class type,
String name) |
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. |
Invoker |
getInvoker()
Invoker is typically scoped at the whole execution. |
Object |
getLocalVariable(String name) |
Continuation |
getReturnAddress()
Where should the return statement return to?
|
void |
setLocalVariable(String name,
Object value) |
Object closureOwner()
Continuation getReturnAddress()
Continuation getBreakAddress(String label)
label - Specifies the loop to break from. null for nearest loop.Continuation getContinueAddress(String label)
label - Specifies the loop to repeat. null for nearest loop.Continuation getExceptionHandler(Class<? extends Throwable> type)
Throwable instance of this type.void buildStackTraceElements(List<StackTraceElement> stack, int depth)
Throwable.getStackTrace().depth - Maximum depth of stack trace to obtain.Copyright © 2011–2014. All rights reserved.