Package org.apache.velocity.runtime
Class VelocimacroManager.MacroEntry
- java.lang.Object
-
- org.apache.velocity.runtime.VelocimacroManager.MacroEntry
-
- Enclosing class:
- VelocimacroManager
private static class VelocimacroManager.MacroEntry extends java.lang.Object
wrapper class for holding VM information
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
fromLibrary
private java.lang.String
sourceTemplate
private VelocimacroProxy
vp
-
Constructor Summary
Constructors Modifier Constructor Description private
MacroEntry(java.lang.String vmName, Node macro, java.util.List<Macro.MacroArg> macroArgs, java.lang.String sourceTemplate, RuntimeServices rsvc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getFromLibrary()
Returns true if the macro was registered from a library.(package private) VelocimacroProxy
getProxy()
java.lang.String
getSourceTemplate()
void
setFromLibrary(boolean fromLibrary)
Has the macro been registered from a library.
-
-
-
Field Detail
-
sourceTemplate
private final java.lang.String sourceTemplate
-
fromLibrary
private boolean fromLibrary
-
vp
private VelocimacroProxy vp
-
-
Constructor Detail
-
MacroEntry
private MacroEntry(java.lang.String vmName, Node macro, java.util.List<Macro.MacroArg> macroArgs, java.lang.String sourceTemplate, RuntimeServices rsvc)
-
-
Method Detail
-
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
public java.lang.String getSourceTemplate()
-
getProxy
VelocimacroProxy getProxy()
-
-