Interface Parser

    • Method Detail

      • getImageBase

        URL getImageBase()
        Returns the base URL for any images displayed in returned ParserNotice HTML text. Note that if a parser notice's text is not HTML, this URL is not used.
        Returns:
        The URL. This may be null.
      • isEnabled

        boolean isEnabled()
        Returns whether this parser is enabled. If this returns false, it will not be run.
        Returns:
        Whether this parser is enabled.
      • parse

        ParseResult parse​(RSyntaxDocument doc,
                          String style)
        Parses input from the specified document.
        Parameters:
        doc - The document to parse. This document is in a read lock, so it cannot be modified while parsing is occurring.
        style - The language being rendered, such as SyntaxConstants.SYNTAX_STYLE_JAVA.
        Returns:
        An object describing the section of the document parsed and the results. This is guaranteed to be non-null.