public class MVELRuntime
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.ThreadLocal<DebuggerContext> |
debuggerContext |
| Constructor and Description |
|---|
MVELRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearAllBreakpoints()
Reset all the currently registered breakpoints.
|
private static void |
ensureDebuggerContext()
Ensures that debugger context exists.
|
static java.lang.Object |
execute(boolean debugger,
CompiledExpression expression,
java.lang.Object ctx,
VariableResolverFactory variableFactory)
Main interpreter.
|
static boolean |
hasBreakpoints()
Tests whether or not breakpoints have been declared.
|
static boolean |
hasDebuggerContext()
Tests whether or not a debugger context exist.
|
static void |
registerBreakpoint(java.lang.String source,
int line)
Register a debugger breakpoint.
|
static void |
removeBreakpoint(java.lang.String source,
int line)
Remove a specific breakpoint.
|
static void |
resetDebugger()
Reset all information registered in the debugger, including the actual attached Debugger and registered
breakpoints.
|
static void |
setThreadDebugger(Debugger debugger)
Sets the Debugger instance to handle breakpoints.
|
private static java.lang.ThreadLocal<DebuggerContext> debuggerContext
public static java.lang.Object execute(boolean debugger,
CompiledExpression expression,
java.lang.Object ctx,
VariableResolverFactory variableFactory)
debugger - Run in debug modeexpression - The compiled expression objectctx - The root context objectvariableFactory - The variable factory to be injectedMVELpublic static void registerBreakpoint(java.lang.String source,
int line)
source - - the source file the breakpoint is registered inline - - the line number of the breakpointpublic static void removeBreakpoint(java.lang.String source,
int line)
source - - the source file the breakpoint is registered inline - - the line number of the breakpoint to be removedpublic static boolean hasDebuggerContext()
private static void ensureDebuggerContext()
public static void clearAllBreakpoints()
public static boolean hasBreakpoints()
public static void setThreadDebugger(Debugger debugger)
resetDebugger()debugger - - debugger instancepublic static void resetDebugger()