Package org.apache.velocity.runtime
Class VelocimacroManager.MacroEntry
java.lang.Object
org.apache.velocity.runtime.VelocimacroManager.MacroEntry
- Enclosing class:
VelocimacroManager
wrapper class for holding VM information
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MacroEntry
(String vmName, Node macro, List<Macro.MacroArg> macroArgs, String sourceTemplate, RuntimeServices rsvc) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the macro was registered from a library.(package private) VelocimacroProxy
getProxy()
void
setFromLibrary
(boolean fromLibrary) Has the macro been registered from a library.
-
Field Details
-
sourceTemplate
-
fromLibrary
private boolean fromLibrary -
vp
-
-
Constructor Details
-
MacroEntry
private MacroEntry(String vmName, Node macro, List<Macro.MacroArg> macroArgs, String sourceTemplate, RuntimeServices rsvc)
-
-
Method Details
-
setFromLibrary
public void setFromLibrary(boolean fromLibrary) Has the macro been registered from a library.- Parameters:
fromLibrary
- True if the macro was registered from a Library.
-
getFromLibrary
public boolean getFromLibrary()Returns true if the macro was registered from a library.- Returns:
- True if the macro was registered from a library.
-
getSourceTemplate
-
getProxy
VelocimacroProxy getProxy()
-