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 totrueif each of its components evaluates totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif each of its components evaluates totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif both of its components evaluate totrue.static <T> Predicate<T> Predicates.equalTo(T target) Returns a predicate that evaluates totrueif 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 totrueif the object reference being tested is a member of the given collection.Predicates.instanceOf(Class<?> clazz) Returns a predicate that evaluates totrueif the object being tested is an instance of the given class.static <T> Predicate<T> Predicates.isNull()Returns a predicate that evaluates totrueif the object reference being tested is null.static <T> Predicate<T> Returns a predicate that evaluates totrueif the given predicate evaluates tofalse.static <T> Predicate<T> Predicates.notNull()Returns a predicate that evaluates totrueif 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 totrueif any one of its components evaluates totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif any one of its components evaluates totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif 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 totrueif each of its components evaluates totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif both of its components evaluate totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif the given predicate evaluates tofalse.static <T> Predicate<T> Returns a predicate that evaluates totrueif any one of its components evaluates totrue.static <T> Predicate<T> Returns a predicate that evaluates totrueif 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 totrueif each of its components evaluates totrue.static <T> Predicate<T> Predicates.or(Collection<? extends Predicate<? super T>> components) Returns a predicate that evaluates totrueif 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.allRulesstatic final Predicate<ProfilingParseRunner.RuleReport> ProfilingParseRunner.Report.namedRulesMethods 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 TypeClassDescriptionclassA simple Node predicate determining whether a Node matches a given label prefix.Fields in org.parboiled.support declared as PredicateModifier and TypeFieldDescriptionFilters.SKIP_EMPTY_OPTSA 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_ZOMSA 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_ZOMSA 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> StringParseTreeUtils.printNodeTree(ParsingResult<V> parsingResult, Predicate<Node<V>> nodeFilter, Predicate<Node<V>> subTreeFilter) Creates a readable string represenation of the parse tree in thee givenParsingResultobject. -
Uses of Predicate in org.parboiled.trees
Methods in org.parboiled.trees with parameters of type Predicate