Class AbstractParser

  • All Implemented Interfaces:
    Parser
    Direct Known Subclasses:
    TaskTagParser, XmlParser

    public abstract class AbstractParser
    extends java.lang.Object
    implements Parser
    A base class for Parser implementations. Most Parsers should be able to extend this class.
    Version:
    1.0
    • Field Detail

      • enabled

        private boolean enabled
        Whether this parser is enabled. If this is false, then this parser will not be run.
    • Constructor Detail

      • AbstractParser

        protected AbstractParser()
        Constructor.
    • Method Detail

      • getImageBase

        public java.net.URL getImageBase()
        Returns null. Parsers that wish to show images in their tool tips should override this method to return the image base URL.
        Specified by:
        getImageBase in interface Parser
        Returns:
        null always.
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Parser
        Returns whether this parser is enabled. If this returns false, it will not be run.
        Specified by:
        isEnabled in interface Parser
        Returns:
        Whether this parser is enabled.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Toggles whether this parser is enabled.
        Parameters:
        enabled - Whether this parser is enabled.
        See Also:
        isEnabled()