java.lang.Object
de.monticore.generating.templateengine.freemarker.alias.Alias
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel
Direct Known Subclasses:
GlexAlias, TcAlias

public abstract class Alias extends Object implements freemarker.template.TemplateMethodModelEx
  • Field Details

    • name

      protected final String name
    • methodName

      protected final String methodName
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getMethodName

      public String getMethodName()
    • getMethod

      public abstract freemarker.template.TemplateMethodModelEx getMethod() throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • exec

      public Object exec(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
    • convertVarargsToList

      protected List convertVarargsToList(List arguments, int startIndex) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • convertVarargsToCollectionModel

      protected freemarker.ext.beans.CollectionModel convertVarargsToCollectionModel(List arguments, int startIndex) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • exactArguments

      protected void exactArguments(List arguments, int count) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • atLeastArguments

      protected void atLeastArguments(List arguments, int count) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException