Class TagLibToDirectiveAndFunction

  • All Implemented Interfaces:
    freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

    public class TagLibToDirectiveAndFunction
    extends java.lang.Object
    implements freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateMethodModelEx
    • Field Summary

      • Fields inherited from interface freemarker.template.TemplateModel

        NOTHING
    • Constructor Summary

      Constructors 
      Constructor Description
      TagLibToDirectiveAndFunction​(java.lang.String namespace, groovy.lang.GroovyObject tagLibInstance, java.lang.String tagName, groovy.lang.Closure tagInstance, boolean hasReturnValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object exec​(java.util.List arguments)  
      void execute​(freemarker.core.Environment env, java.util.Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)  
      protected java.util.Map unwrapParams​(freemarker.template.TemplateHashModelEx params, java.lang.Boolean translateReservedWords)  
      protected java.util.Map unwrapParams​(java.util.Map params, java.lang.Boolean translateReservedWords)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TagLibToDirectiveAndFunction

        public TagLibToDirectiveAndFunction​(java.lang.String namespace,
                                            groovy.lang.GroovyObject tagLibInstance,
                                            java.lang.String tagName,
                                            groovy.lang.Closure tagInstance,
                                            boolean hasReturnValue)
    • Method Detail

      • exec

        public java.lang.Object exec​(java.util.List arguments)
                              throws freemarker.template.TemplateModelException
        Specified by:
        exec in interface freemarker.template.TemplateMethodModel
        Specified by:
        exec in interface freemarker.template.TemplateMethodModelEx
        Throws:
        freemarker.template.TemplateModelException
      • execute

        public void execute​(freemarker.core.Environment env,
                            java.util.Map params,
                            freemarker.template.TemplateModel[] loopVars,
                            freemarker.template.TemplateDirectiveBody body)
                     throws freemarker.template.TemplateException,
                            java.io.IOException
        Specified by:
        execute in interface freemarker.template.TemplateDirectiveModel
        Throws:
        freemarker.template.TemplateException
        java.io.IOException
      • unwrapParams

        protected java.util.Map unwrapParams​(freemarker.template.TemplateHashModelEx params,
                                             java.lang.Boolean translateReservedWords)
                                      throws freemarker.template.TemplateModelException
        Throws:
        freemarker.template.TemplateModelException
      • unwrapParams

        protected java.util.Map unwrapParams​(java.util.Map params,
                                             java.lang.Boolean translateReservedWords)
                                      throws freemarker.template.TemplateModelException
        Throws:
        freemarker.template.TemplateModelException