Uses of Interface
org.parboiled.common.Predicate
Packages that use Predicate
Package
Description
-
Uses of Predicate in org.parboiled.common
Methods in org.parboiled.common that return PredicateModifier and TypeMethodDescriptionstatic <T> Predicate
<T> Predicates.alwaysFalse()
Returns a predicate that always evaluates tofalse
.static <T> Predicate
<T> Predicates.alwaysTrue()
Returns a predicate that always evaluates totrue
.static <T> Predicate
<T> Predicates.and
(Collection<? extends Predicate<? super T>> components) Returns a predicate that evaluates totrue
if each of its components evaluates totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if each of its components evaluates totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if both of its components evaluate totrue
.static <T> Predicate
<T> Predicates.equalTo
(T target) Returns a predicate that evaluates totrue
if the object being testedequals()
the given target or both are null.static <T> Predicate
<T> Predicates.in
(Collection<? extends T> target) Returns a predicate that evaluates totrue
if the object reference being tested is a member of the given collection.Predicates.instanceOf
(Class<?> clazz) Returns a predicate that evaluates totrue
if the object being tested is an instance of the given class.static <T> Predicate
<T> Predicates.isNull()
Returns a predicate that evaluates totrue
if the object reference being tested is null.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if the given predicate evaluates tofalse
.static <T> Predicate
<T> Predicates.notNull()
Returns a predicate that evaluates totrue
if the object reference being tested is not null.static <T> Predicate
<T> Predicates.or
(Collection<? extends Predicate<? super T>> components) Returns a predicate that evaluates totrue
if any one of its components evaluates totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if any one of its components evaluates totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if either of its components evaluates totrue
.Methods in org.parboiled.common with parameters of type PredicateModifier and TypeMethodDescriptionstatic <T> Predicate
<T> Returns a predicate that evaluates totrue
if each of its components evaluates totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if both of its components evaluate totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if the given predicate evaluates tofalse
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if any one of its components evaluates totrue
.static <T> Predicate
<T> Returns a predicate that evaluates totrue
if either of its components evaluates totrue
.Method parameters in org.parboiled.common with type arguments of type PredicateModifier and TypeMethodDescriptionstatic <T> Predicate
<T> Predicates.and
(Collection<? extends Predicate<? super T>> components) Returns a predicate that evaluates totrue
if each of its components evaluates totrue
.static <T> Predicate
<T> Predicates.or
(Collection<? extends Predicate<? super T>> components) Returns a predicate that evaluates totrue
if any one of its components evaluates totrue
. -
Uses of Predicate in org.parboiled.parserunners
Fields in org.parboiled.parserunners declared as PredicateModifier and TypeFieldDescriptionstatic final Predicate
<ProfilingParseRunner.RuleReport> ProfilingParseRunner.Report.allRules
static final Predicate
<ProfilingParseRunner.RuleReport> ProfilingParseRunner.Report.namedRules
Methods in org.parboiled.parserunners that return PredicateMethods in org.parboiled.parserunners with parameters of type PredicateModifier and TypeMethodDescriptionProfilingParseRunner.Report.printTopRules
(int count, Predicate<ProfilingParseRunner.RuleReport> filter) TracingParseRunner.withFilter
(Predicate<?> filter) Attaches the given filter to this TracingParseRunner instance. -
Uses of Predicate in org.parboiled.support
Classes in org.parboiled.support that implement PredicateModifier and TypeClassDescriptionclass
A simple Node predicate determining whether a Node matches a given label prefix.Fields in org.parboiled.support declared as PredicateModifier and TypeFieldDescriptionFilters.SKIP_EMPTY_OPTS
A predicate for Node tree printing, suppresses printing of parse tree nodes for Optional rules that do not have sub nodes.Filters.SKIP_EMPTY_OPTS_AND_ZOMS
A predicate for Node tree printing, suppresses printing of parse tree nodes for Optional and ZeroOrMore rules that do not have sub nodes.Filters.SKIP_EMPTY_ZOMS
A predicate for Node tree printing, suppresses printing of parse tree nodes for ZeroOrMore rules that do not have sub nodes.Methods in org.parboiled.support that return PredicateModifier and TypeMethodDescriptionFilters.fromLine
(int firstLine) A predicate usable as a filter (element) of aTracingParseRunner
.Filters.lines
(int firstLine, int lastLine) A predicate usable as a filter (element) of aTracingParseRunner
.Filters.onlyMatches()
A predicate usable as a filter (element) of aTracingParseRunner
.Filters.onlyMismatches()
A predicate usable as a filter (element) of aTracingParseRunner
.A predicate usable as a filter (element) of aTracingParseRunner
.Filters.preventLoops()
A predicate for rule tree printing.A predicate usable as a filter (element) of aTracingParseRunner
.Filters.rulesBelow
(Rule... rules) A predicate usable as a filter (element) of aTracingParseRunner
.Filters.untilLine
(int lastLine) A predicate usable as a filter (element) of aTracingParseRunner
.Methods in org.parboiled.support with parameters of type PredicateModifier and TypeMethodDescriptionstatic <V,
C extends Collection<Node<V>>>
CParseTreeUtils.collectNodes
(List<Node<V>> parents, Predicate<Node<V>> predicate, C collection) Collects all nodes underneath the given parents for which the given predicate evaluates to true.static <V,
C extends Collection<Node<V>>>
CParseTreeUtils.collectNodes
(Node<V> parent, Predicate<Node<V>> predicate, C collection) Collects all nodes underneath the given parent for which the given predicate evaluates to true.static <V> Node
<V> ParseTreeUtils.findLastNode
(List<Node<V>> parents, Predicate<Node<V>> predicate) Returns the last node underneath the given parents for which the given predicate evaluates to true.static <V> Node
<V> ParseTreeUtils.findLastNode
(Node<V> parent, Predicate<Node<V>> predicate) Returns the last node underneath the given parent for which the given predicate evaluates to true.static <V> Node
<V> Returns the first node underneath the given parents for which the given predicate evaluates to true.static <V> Node
<V> Returns the first node underneath the given parent for which the given predicate evaluates to true.static <V> String
ParseTreeUtils.printNodeTree
(ParsingResult<V> parsingResult, Predicate<Node<V>> nodeFilter, Predicate<Node<V>> subTreeFilter) Creates a readable string represenation of the parse tree in thee givenParsingResult
object. -
Uses of Predicate in org.parboiled.trees
Methods in org.parboiled.trees with parameters of type Predicate