public abstract class

RegexFilter

extends Object
java.lang.Object
   ↳ com.google.gwt.util.regexfilter.RegexFilter

Class Overview

This class implements filters that are configured with a sequence of regexes. Each regex in the sequence can be preceded by a + or a - to indicate whether it indicates that queries matching the regex should be included or excluded. Concrete subclasses indicate the default behaviors by overriding acceptByDefault() and entriesArePositiveByDefault().

Summary

Public Constructors
RegexFilter(TreeLogger logger, List<String> values)
Public Methods
boolean isIncluded(TreeLogger logger, String query)
Protected Methods
abstract boolean acceptByDefault()
If no pattern matches, whether the query should be considered as an accept.
abstract boolean entriesArePositiveByDefault()
If a pattern is not preceded by + or -, whether the query should be considered positive.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RegexFilter (TreeLogger logger, List<String> values)

Throws
UnableToCompleteException

Public Methods

public boolean isIncluded (TreeLogger logger, String query)

Protected Methods

protected abstract boolean acceptByDefault ()

If no pattern matches, whether the query should be considered as an accept.

protected abstract boolean entriesArePositiveByDefault ()

If a pattern is not preceded by + or -, whether the query should be considered positive.