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 java.lang.String[]
argArray
private boolean
fromLibrary
private SimpleNode
nodeTree
private java.lang.String
sourceTemplate
private java.lang.String
vmName
private VelocimacroProxy
vp
-
Constructor Summary
Constructors Modifier Constructor Description private
MacroEntry(java.lang.String vmName, Node macro, java.lang.String[] argArray, 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.SimpleNode
getNodeTree()
Returns the node tree for this macro.(package private) VelocimacroProxy
getProxy(java.lang.String namespace)
java.lang.String
getSourceTemplate()
Returns the source template name for this macro.void
setFromLibrary(boolean fromLibrary)
Has the macro been registered from a library.
-
-
-
Field Detail
-
vmName
private final java.lang.String vmName
-
argArray
private final java.lang.String[] argArray
-
sourceTemplate
private final java.lang.String sourceTemplate
-
nodeTree
private SimpleNode nodeTree
-
fromLibrary
private boolean fromLibrary
-
vp
private VelocimacroProxy vp
-
-
Constructor Detail
-
MacroEntry
private MacroEntry(java.lang.String vmName, Node macro, java.lang.String[] argArray, 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.
-
getNodeTree
public SimpleNode getNodeTree()
Returns the node tree for this macro.- Returns:
- The node tree for this macro.
-
getSourceTemplate
public java.lang.String getSourceTemplate()
Returns the source template name for this macro.- Returns:
- The source template name for this macro.
-
getProxy
VelocimacroProxy getProxy(java.lang.String namespace)
-
-