Class Processor

  • Direct Known Subclasses:
    Processor.WebComponentProcessor

    public abstract class Processor
    extends Object
    Specific process for each type of snippet component.
    Version:
    2.4
    Author:
    Christophe Friederich
    • Constructor Detail

      • Processor

        public Processor​(SnippetParser parser)
        Default constructor
        Parameters:
        parser - current parser.
    • Method Detail

      • appendChildrenToHtml

        protected abstract void appendChildrenToHtml​(org.jsoup.nodes.Node node,
                                                     Appendable writer)
                                              throws IOException
        Append child Node in html rendering.
        Parameters:
        node - the node to use.
        writer - the html writer
        Throws:
        IOException - If an I/O error occurs.
      • convertToHtml

        protected org.jsoup.nodes.Element convertToHtml​(@Nonnull
                                                        ComponentToken startToken,
                                                        @Nullable
                                                        ComponentToken endToken)
        Convert the snippet to html.
        Parameters:
        startToken - the start token
        endToken - the end token.
        Returns:
        Returns a new Element representing html represention of snippet.