public class MVELRuntime extends Object
| Constructor and Description |
|---|
MVELRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearAllBreakpoints()
Reset all the currently registered breakpoints.
|
static Object |
execute(boolean debugger,
CompiledExpression expression,
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(String source,
int line)
Register a debugger breakpoint.
|
static void |
removeBreakpoint(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.
|
public static Object execute(boolean debugger, CompiledExpression expression, 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(String source, int line)
source - - the source file the breakpoint is registered inline - - the line number of the breakpointpublic static void removeBreakpoint(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()
public static void clearAllBreakpoints()
public static boolean hasBreakpoints()
public static void setThreadDebugger(Debugger debugger)
resetDebugger()debugger - - debugger instancepublic static void resetDebugger()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.