Package adams.gui.tools
Class ConsoleOutputAnalyzerPanel.ConsoleEntryFilter
- java.lang.Object
-
- adams.gui.tools.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 Summary
Fields Modifier and Type Field Description protected Stringm_Originthe exact origin.protected BaseRegExpm_OriginRegExpthe origin regexp.protected BaseRegExpm_OutputRegExpthe output regexp.protected Stringm_Typethe type.
-
Constructor Summary
Constructors Constructor Description ConsoleEntryFilter()Initializes a MATCH-ALL filter.ConsoleEntryFilter(BaseRegExp originRegExp, String origin, String type, BaseRegExp outputRegExp)Initializes the filter, use null to turn off filtering.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOrigin()Returns the exact origin string.BaseRegExpgetOriginRegExp()Returns the regular expression on the origin.BaseRegExpgetOutputRegExp()Returns the regular expression on the output.StringgetType()Returns the exact type string.booleanisMatch(ConsoleOutputAnalyzerPanel.ConsoleOutputEntry entry)Checks whether the entry matches the filter.booleanisMatchAll()Checks whether this is a MATCH ALL filter.StringtoString()Returns a string representation of the filter.
-
-
-
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 originorigin- the exact origin stringtype- the type to look foroutputRegExp- 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
-
isMatch
public boolean isMatch(ConsoleOutputAnalyzerPanel.ConsoleOutputEntry entry)
Checks whether the entry matches the filter.- Parameters:
entry- the entry to check- Returns:
- true if a match
-
isMatchAll
public boolean isMatchAll()
Checks whether this is a MATCH ALL filter.- Returns:
- true if a match all filter
-
-