|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmmp.engine.MacroRegistry
public class MacroRegistry
The macroRegistry holds stacks of macros identified by name.
The macroRegistry is a container for builtin and user defined macros.
The container for the active macros is organized as a collection of
stacks of macros.
Builtin macros are furthermore stored in a second registry. If a builtin
macro gets undefined, it can nevertheless by called by the 'builtin' macro.
Constructor Summary | |
---|---|
MacroRegistry()
|
Method Summary | |
---|---|
Macro |
getBuiltin(java.lang.String name)
Gets the builtin macro named 'name', even if it has been undefined. |
Macro |
getMacro(java.lang.String name)
Get macro named 'name'. |
java.util.Set<java.lang.String> |
getMacroNames()
Get the set of all names of currently defined macros. |
void |
popMacro(java.lang.String name)
The macro named 'name' is popped from the stack of macros. |
void |
pushMacro(java.lang.String name,
Macro macro)
Pushes macro object on the top of an already defined macro with the same name. |
void |
registerMacro(java.lang.String name,
Macro macro)
Register macro object as macro 'name'. |
void |
unregisterMacro(java.lang.String name)
The macro named 'name' is unregistered. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacroRegistry()
Method Detail |
---|
public final Macro getBuiltin(java.lang.String name)
name
- name of builtin to find
public final Macro getMacro(java.lang.String name)
name
- name of macro to be found.
public final java.util.Set<java.lang.String> getMacroNames()
public final void popMacro(java.lang.String name)
name
- name of the macro to be popped.public final void pushMacro(java.lang.String name, Macro macro)
name
- name of macromacro
- macro objectpublic final void registerMacro(java.lang.String name, Macro macro)
name
- name of macro.macro
- macro object.public final void unregisterMacro(java.lang.String name)
name
- the name of the macro to unregister.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |