Class NameForEnumConstantMethod

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

    public class NameForEnumConstantMethod
    extends Object
    implements freemarker.template.TemplateMethodModelEx
    Gets a C-style, unambiguous name for an enum contant.
    Author:
    Ryan Heaton
    • Constructor Detail

      • NameForEnumConstantMethod

        public NameForEnumConstantMethod​(String pattern,
                                         String projectLabel,
                                         Map<String,​String> namespaces2ids)
    • Method Detail

      • exec

        public Object exec​(List list)
                    throws freemarker.template.TemplateModelException
        Specified by:
        exec in interface freemarker.template.TemplateMethodModel
        Specified by:
        exec in interface freemarker.template.TemplateMethodModelEx
        Throws:
        freemarker.template.TemplateModelException