Class ELText.ELTextComposite

  • Enclosing class:
    ELText

    protected static final class ELText.ELTextComposite
    extends ELText
    • Constructor Detail

      • ELTextComposite

        public ELTextComposite​(ELText[] txt)
    • Method Detail

      • write

        public void write​(Writer out,
                          jakarta.el.ELContext ctx)
                   throws jakarta.el.ELException,
                          IOException
        Description copied from class: ELText
        Allow this instance to write to the passed Writer, given the ELContext state
        Overrides:
        write in class ELText
        Parameters:
        out - Writer to write to
        ctx - current ELContext state
        Throws:
        jakarta.el.ELException
        IOException
      • toString

        public String toString​(jakarta.el.ELContext ctx)
        Description copied from class: ELText
        Evaluates the ELText to a String
        Overrides:
        toString in class ELText
        Parameters:
        ctx - current ELContext state
        Returns:
        the evaluated String
      • isLiteral

        public boolean isLiteral()
        Description copied from class: ELText
        If it's literal text
        Overrides:
        isLiteral in class ELText
        Returns:
        true if the String is literal (doesn't contain #{..} or ${..})
      • apply

        public ELText apply​(jakarta.el.ExpressionFactory factory,
                            jakarta.el.ELContext ctx)
        Description copied from class: ELText
        Return an instance of this that is applicable given the ELContext and ExpressionFactory state.
        Overrides:
        apply in class ELText
        Parameters:
        factory - the ExpressionFactory to use
        ctx - the ELContext to use
        Returns:
        an ELText instance
      • getElements

        public ELText[] getElements()