Class ClassPathFilter

java.lang.Object
repast.simphony.filter.RegExStringFilter
repast.simphony.util.ClassPathFilter
All Implemented Interfaces:
Filter<String>

public class ClassPathFilter extends RegExStringFilter
Filter that takes a fully qualified class or package name expression and filters found classes on whether they match the expression. The expression can contain the "*" wildcard.
Author:
Nick Collier
  • Constructor Details

    • ClassPathFilter

      public ClassPathFilter(String filterExpression)
      Parameters:
      filterExpression -
  • Method Details

    • evaluate

      public boolean evaluate(String pathExp)
      Evaluates class paths (e.g. foo\bar\Baz.class) against an filter.
      Specified by:
      evaluate in interface Filter<String>
      Overrides:
      evaluate in class RegExStringFilter
      Returns:
      true if the class path matches the filter otherwise false.