public class Parser extends Object
| Constructor and Description |
|---|
Parser()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ClassPathFilter |
parse(String filterStr)
Parses the class filter string into a ClassFilter object.
|
public ClassPathFilter parse(String filterStr) throws IllegalArgumentException
Strings are of the form:
FilterName( arg[,arg[,arg[,...]]] )
Where FilterName is the name of the desired filter class without the "ClassFilter" ending. (e.g. True() for the class TrueClassFilter).
The result is a prefix notation function. For example:
Or(Interface(), Not(Prefix(org.xenei)))
is a function that accepts classes that are either interfaces or whos fully qualified java name does not start with "org.xenei"
Filters that accept a Case as the first argument in the constructor may
have the case specified as the first parameter as either
Sensitive or Insensitive.
filterStr - The filter definition to parse.IllegalArgumentException - If the filter can not be build.Copyright © 2013-2017 XENEI.com. All Rights Reserved.