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.Objectwrapper class for holding VM information
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]argArrayprivate booleanfromLibraryprivate SimpleNodenodeTreeprivate java.lang.StringsourceTemplateprivate java.lang.StringvmNameprivate VelocimacroProxyvp
-
Constructor Summary
Constructors Modifier Constructor Description privateMacroEntry(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 booleangetFromLibrary()Returns true if the macro was registered from a library.SimpleNodegetNodeTree()Returns the node tree for this macro.(package private) VelocimacroProxygetProxy(java.lang.String namespace)java.lang.StringgetSourceTemplate()Returns the source template name for this macro.voidsetFromLibrary(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)
-
-