Class SimpleMethodModel

    • Method Detail

      • get

        public TemplateModel get​(int index)
                          throws TemplateModelException
        Description copied from interface: TemplateSequenceModel
        Retrieves the i-th template model in this sequence.
        Specified by:
        get in interface TemplateSequenceModel
        Returns:
        the item at the specified index, or null if the index is out of bounds. Note that a null value is interpreted by FreeMarker as "variable does not exist", and accessing a missing variables is usually considered as an error in the FreeMarker Template Language, so the usage of a bad index will not remain hidden, unless the default value for that case was also specified in the template.
        Throws:
        TemplateModelException
      • explainTypeError

        public Object[] explainTypeError​(Class[] expectedClasses)
        Implementation of experimental interface; don't use it, no backward compatibility guarantee!
        Specified by:
        explainTypeError in interface freemarker.core._UnexpectedTypeErrorExplainerTemplateModel
      • getMember

        protected Member getMember()