Class ConsoleOutputAnalyzerPanel.ConsoleEntryFilter

  • Enclosing class:
    ConsoleOutputAnalyzerPanel

    public static class ConsoleOutputAnalyzerPanel.ConsoleEntryFilter
    extends Object
    For filtering the console output.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_OriginRegExp

        protected BaseRegExp m_OriginRegExp
        the origin regexp.
      • m_Origin

        protected String m_Origin
        the exact origin.
      • m_Type

        protected String m_Type
        the type.
      • m_OutputRegExp

        protected BaseRegExp m_OutputRegExp
        the output regexp.
    • Constructor Detail

      • ConsoleEntryFilter

        public ConsoleEntryFilter()
        Initializes a MATCH-ALL filter.
      • ConsoleEntryFilter

        public ConsoleEntryFilter​(BaseRegExp originRegExp,
                                  String origin,
                                  String type,
                                  BaseRegExp outputRegExp)
        Initializes the filter, use null to turn off filtering.
        Parameters:
        originRegExp - the regular expression on the origin
        origin - the exact origin string
        type - the type to look for
        outputRegExp - the regular expression on the output
    • Method Detail

      • getOriginRegExp

        public BaseRegExp getOriginRegExp()
        Returns the regular expression on the origin.
        Returns:
        the regexp, can be null
      • getOrigin

        public String getOrigin()
        Returns the exact origin string.
        Returns:
        the origin, can be null
      • getType

        public String getType()
        Returns the exact type string.
        Returns:
        the type, can be null
      • getOutputRegExp

        public BaseRegExp getOutputRegExp()
        Returns the regular expression on the output.
        Returns:
        the regexp, can be null
      • isMatchAll

        public boolean isMatchAll()
        Checks whether this is a MATCH ALL filter.
        Returns:
        true if a match all filter
      • toString

        public String toString()
        Returns a string representation of the filter.
        Overrides:
        toString in class Object
        Returns:
        the string representation