org.mvel
Class MVELRuntime

java.lang.Object
  extended by org.mvel.MVELRuntime

public class MVELRuntime
extends java.lang.Object

This class contains the runtime for running compiled MVEL expressions.


Constructor Summary
MVELRuntime()
           
 
Method Summary
static void clearAllBreakpoints()
          Reset all the currently registered breakpoints.
static java.lang.Object execute(boolean debugger, CompiledExpression expression, java.lang.Object ctx, VariableResolverFactory variableFactory)
          Main interpreter.
static boolean hasBreakpoints()
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVELRuntime

public MVELRuntime()
Method Detail

execute

public static java.lang.Object execute(boolean debugger,
                                       CompiledExpression expression,
                                       java.lang.Object ctx,
                                       VariableResolverFactory variableFactory)
Main interpreter.

Parameters:
debugger - -
expression - -
ctx - -
variableFactory - -
Returns:
-
See Also:
MVEL

registerBreakpoint

public static void registerBreakpoint(java.lang.String source,
                                      int line)
Register a debugger breakpoint.

Parameters:
source - - the source file the breakpoint is registered in
line - - the line number of the breakpoint

removeBreakpoint

public static void removeBreakpoint(java.lang.String source,
                                    int line)
Remove a specific breakpoint.

Parameters:
source - - the source file the breakpoint is registered in
line - - the line number of the breakpoint to be removed

clearAllBreakpoints

public static void clearAllBreakpoints()
Reset all the currently registered breakpoints.


hasBreakpoints

public static boolean hasBreakpoints()

setThreadDebugger

public static void setThreadDebugger(Debugger debugger)
Sets the Debugger instance to handle breakpoints. A debugger may only be registered once per thread. Calling this method more than once will result in the second and subsequent calls to simply fail silently. To re-register the Debugger, you must call resetDebugger()

Parameters:
debugger - - debugger instance

resetDebugger

public static void resetDebugger()
Reset all information registered in the debugger, including the actual attached Debugger and registered breakpoints.