Uses of Interface
org.parboiled.common.Predicate
-
Packages that use Predicate Package Description org.parboiled.common org.parboiled.parserunners org.parboiled.support org.parboiled.trees -
-
Uses of Predicate in org.parboiled.common
Methods in org.parboiled.common that return Predicate Modifier and Type Method Description static <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(java.util.Collection<? extends Predicate<? super T>> components)Returns a predicate that evaluates totrueif each of its components evaluates totrue.static <T> Predicate<T>Predicates. and(Predicate<? super T>... components)Returns a predicate that evaluates totrueif each of its components evaluates totrue.static <T> Predicate<T>Predicates. and(Predicate<? super T> first, Predicate<? super T> second)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(java.util.Collection<? extends T> target)Returns a predicate that evaluates totrueif the object reference being tested is a member of the given collection.static Predicate<java.lang.Object>Predicates. instanceOf(java.lang.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>Predicates. not(Predicate<T> predicate)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(java.util.Collection<? extends Predicate<? super T>> components)Returns a predicate that evaluates totrueif any one of its components evaluates totrue.static <T> Predicate<T>Predicates. or(Predicate<? super T>... components)Returns a predicate that evaluates totrueif any one of its components evaluates totrue.static <T> Predicate<T>Predicates. or(Predicate<? super T> first, Predicate<? super T> second)Returns a predicate that evaluates totrueif either of its components evaluates totrue.Methods in org.parboiled.common with parameters of type Predicate Modifier and Type Method Description static <T> Predicate<T>Predicates. and(Predicate<? super T>... components)Returns a predicate that evaluates totrueif each of its components evaluates totrue.static <T> Predicate<T>Predicates. and(Predicate<? super T> first, Predicate<? super T> second)Returns a predicate that evaluates totrueif both of its components evaluate totrue.static <T> Predicate<T>Predicates. not(Predicate<T> predicate)Returns a predicate that evaluates totrueif the given predicate evaluates tofalse.static <T> Predicate<T>Predicates. or(Predicate<? super T>... components)Returns a predicate that evaluates totrueif any one of its components evaluates totrue.static <T> Predicate<T>Predicates. or(Predicate<? super T> first, Predicate<? super T> second)Returns a predicate that evaluates totrueif either of its components evaluates totrue.Method parameters in org.parboiled.common with type arguments of type Predicate Modifier and Type Method Description static <T> Predicate<T>Predicates. and(java.util.Collection<? extends Predicate<? super T>> components)Returns a predicate that evaluates totrueif each of its components evaluates totrue.static <T> Predicate<T>Predicates. or(java.util.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 Predicate Modifier and Type Field Description static Predicate<ProfilingParseRunner.RuleReport>ProfilingParseRunner.Report. allRulesstatic Predicate<ProfilingParseRunner.RuleReport>ProfilingParseRunner.Report. namedRulesMethods in org.parboiled.parserunners that return Predicate Modifier and Type Method Description Predicate<Tuple2<Context<?>,java.lang.Boolean>>TracingParseRunner. getFilter()Methods in org.parboiled.parserunners with parameters of type Predicate Modifier and Type Method Description java.lang.StringProfilingParseRunner.Report. printTopRules(int count, Predicate<ProfilingParseRunner.RuleReport> filter)TracingParseRunner<V>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 Predicate Modifier and Type Class Description classLabelPrefixPredicate<V>A simple Node predicate determining whether a Node matches a given label prefix.Fields in org.parboiled.support declared as Predicate Modifier and Type Field Description static Predicate<Node<java.lang.Object>>Filters. SKIP_EMPTY_OPTSA predicate for Node tree printing, suppresses printing of parse tree nodes for Optional rules that do not have sub nodes.static Predicate<Node<java.lang.Object>>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.static Predicate<Node<java.lang.Object>>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 Predicate Modifier and Type Method Description static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. fromLine(int firstLine)A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. lines(int firstLine, int lastLine)A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. onlyMatches()A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. onlyMismatches()A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. onlyRules(Rule... rules)A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Matcher>Filters. preventLoops()A predicate for rule tree printing.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. rules(Rule... rules)A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. rulesBelow(Rule... rules)A predicate usable as a filter (element) of aTracingParseRunner.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. untilLine(int lastLine)A predicate usable as a filter (element) of aTracingParseRunner.Methods in org.parboiled.support with parameters of type Predicate Modifier and Type Method Description static <V,C extends java.util.Collection<Node<V>>>
CParseTreeUtils. collectNodes(java.util.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 java.util.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(java.util.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>ParseTreeUtils. findNode(java.util.List<Node<V>> parents, Predicate<Node<V>> predicate)Returns the first node underneath the given parents for which the given predicate evaluates to true.static <V> Node<V>ParseTreeUtils. findNode(Node<V> parent, Predicate<Node<V>> predicate)Returns the first node underneath the given parent for which the given predicate evaluates to true.static <V> java.lang.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 Modifier and Type Method Description static <T extends GraphNode<T>>
java.lang.StringGraphUtils. printTree(T node, Formatter<T> formatter, Predicate<T> nodeFilter, Predicate<T> subTreeFilter)Creates a string representation of the graph reachable from the given node using the given formatter.
-