public class EntitySelectionExpressionParser extends java.lang.Object
ShallowEntity
s from a parse tree.
The expressions may be formed by '&', '|', '!', parentheses, and all
predicates defined in EntitySelectionPredicates
(i.e. you can use all
public methods defined there without respect of case). Predicates may contain
additional underscores and dashes to improve readability, so 'simpleGetter',
'simplegetter', 'simple_getter' and 'simple-getter' would all be treated the
same.
An example for an expression that matches all public attributes and methods,
but no simple setters/getter and no methods annotated with '@Override' would
be
public & (attribute | method) & !(simple-getter | simple-setter | annotated(override))
Modifier and Type | Method and Description |
---|---|
static java.util.function.Predicate<ShallowEntity> |
parse(java.lang.String expression)
Parses the given expression and returns a corresponding predicate.
|
public static java.util.function.Predicate<ShallowEntity> parse(java.lang.String expression) throws ShallowParserException
ShallowParserException