Venice 0.751beta

nz.org.venice.macro
Class MacroManager

java.lang.Object
  extended bynz.org.venice.macro.MacroManager

public class MacroManager
extends java.lang.Object

Author:
Dan Makovec venice@makovec.net This class handles parsing and execution of macros

Constructor Summary
MacroManager()
           
 
Method Summary
static void execute(StoredMacro m)
          Execute the given macro.
static void executeStartupMacros()
          Execute all the macros that have been configured to be run on startup, in the order that they have been assigned.
static void uncacheCompiledMacro(StoredMacro m)
          Removes the compiled macro from memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroManager

public MacroManager()
Method Detail

uncacheCompiledMacro

public static void uncacheCompiledMacro(StoredMacro m)
Removes the compiled macro from memory. Useful for when editing macro source, so that changes are automatically compiled in

Parameters:
m - The macro to uncache

executeStartupMacros

public static void executeStartupMacros()
Execute all the macros that have been configured to be run on startup, in the order that they have been assigned.


execute

public static void execute(StoredMacro m)
Execute the given macro. The first time this is called for a macro with a given name in the current runtime session, the macro is compiled and the compiled code is stored before executing. Subsequent executions load in the precompiled macro code.

Parameters:
m - The Macro to execute

Venice 0.751beta