Uses of Interface
org.parboiled.Rule
-
Packages that use Rule Package Description org.parboiled org.parboiled.matchers org.parboiled.parserunners org.parboiled.support -
-
Uses of Rule in org.parboiled
Methods in org.parboiled that return Rule Modifier and Type Method Description RuleParserStatistics. getRootRule()RuleRule. label(java.lang.String label)Attaches a label to this Rule.RuleRule. memoMismatches()Enables memoization of rule mismatches for consecutive rule applications at the same input location.RuleRule. skipNode()Instructs parboiled to not create a parse tree node for this rule.RuleRule. suppressNode()Instructs parboiled to not create a parse tree node for this rule and all subrules, which can significantly increase parsing performance.RuleRule. suppressSubnodes()Instructs parboiled to not create parse tree nodes for the subrules of this rule, which can significantly increase parsing performance.Methods in org.parboiled with parameters of type Rule Modifier and Type Method Description static ParserStatisticsParserStatistics. generateFor(Rule rule) -
Uses of Rule in org.parboiled.matchers
Subinterfaces of Rule in org.parboiled.matchers Modifier and Type Interface Description interfaceMatcherA Matcher instance is responsible for "executing" a specific Rule instance, i.e.Classes in org.parboiled.matchers that implement Rule Modifier and Type Class Description classAbstractMatcherAbstract base class of most regularMatchers.classActionMatcherclassAnyMatcherAMatchermatching any single character except EOI.classAnyOfMatcherAMatchermatching a single character out of a givenCharactersset.classCharIgnoreCaseMatcherAMatchermatching a single character case-independently.classCharMatcherAMatchermatching a single given character.classCharRangeMatcherAMatchermatching a single character out of a given range of characters.classCustomMatcherBase class of custom matcher implementations.classEmptyMatcherAMatcherthat always successfully matches nothing.classFirstOfMatcherAMatchertrying all of its submatchers in sequence and succeeding when the first submatcher succeeds.classFirstOfStringsMatcherA specialized FirstOfMatcher that handles FirstOf(string, string, ...) rules much faster that the regular FirstOfMatcher.classMemoMismatchesMatcherSpecial wrapping matcher that performs memoization of the last mismatch of the wrapped sub rule.classNothingMatcherAMatcherthat never matches anything.classOneOrMoreMatcherAMatcherthat repeatedly tries its submatcher against the input.classOptionalMatcherAMatcherthat tries its submatcher once against the input and always succeeds.classProxyMatcherclassSequenceMatcherAMatcherthat executes all of its submatchers in sequence and only succeeds if all submatchers succeed.classStringMatcherASequenceMatcherspecialization for sequences of CharMatchers.classTestMatcherA specialMatchernot actually matching any input but rather trying its submatcher against the current input position.classTestNotMatcherA specialMatchernot actually matching any input but rather trying its submatcher against the current input position.classVarFramingMatcherSpecial wrapping matcher that manages the creation and destruction of execution frames for a number of action vars.classZeroOrMoreMatcherAMatcherthat repeatedly tries its submatcher against the input.Methods in org.parboiled.matchers that return Rule Modifier and Type Method Description RuleMemoMismatchesMatcher. label(java.lang.String label)RuleProxyMatcher. label(java.lang.String label)RuleVarFramingMatcher. label(java.lang.String label)RuleAbstractMatcher. memoMismatches()RuleMemoMismatchesMatcher. memoMismatches()RuleProxyMatcher. memoMismatches()RuleVarFramingMatcher. memoMismatches()RuleAbstractMatcher. skipNode()RuleMemoMismatchesMatcher. skipNode()RuleProxyMatcher. skipNode()RuleVarFramingMatcher. skipNode()RuleAbstractMatcher. suppressNode()RuleActionMatcher. suppressNode()RuleMemoMismatchesMatcher. suppressNode()RuleProxyMatcher. suppressNode()RuleVarFramingMatcher. suppressNode()RuleAbstractMatcher. suppressSubnodes()RuleMemoMismatchesMatcher. suppressSubnodes()RuleProxyMatcher. suppressSubnodes()RuleVarFramingMatcher. suppressSubnodes()Constructors in org.parboiled.matchers with parameters of type Rule Constructor Description AbstractMatcher(Rule[] subRules, java.lang.String label)AbstractMatcher(Rule subRule, java.lang.String label)CustomMatcher(Rule[] subRules, java.lang.String label)CustomMatcher(Rule subRule, java.lang.String label)FirstOfMatcher(Rule[] subRules)FirstOfStringsMatcher(Rule[] subRules, char[][] strings)MemoMismatchesMatcher(Rule inner)OneOrMoreMatcher(Rule subRule)OptionalMatcher(Rule subRule)SequenceMatcher(Rule[] subRules)StringMatcher(Rule[] charMatchers, char[] characters)TestMatcher(Rule subRule)TestNotMatcher(Rule subRule)VarFramingMatcher(Rule inner, Var[] variables)ZeroOrMoreMatcher(Rule subRule) -
Uses of Rule in org.parboiled.parserunners
Fields in org.parboiled.parserunners declared as Rule Modifier and Type Field Description RuleRecoveringParseRunner.TimeoutException. ruleMethods in org.parboiled.parserunners with parameters of type Rule Modifier and Type Method Description static <V> ParsingResult<V>BasicParseRunner. run(Rule rule, java.lang.String input)Deprecated.As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than this static method.static <V> ParsingResult<V>RecoveringParseRunner. run(Rule rule, java.lang.String input)Deprecated.As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than this static method.static <V> ParsingResult<V>ReportingParseRunner. run(Rule rule, java.lang.String input)Deprecated.As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than this static method.Constructors in org.parboiled.parserunners with parameters of type Rule Constructor Description AbstractParseRunner(Rule rule)BasicParseRunner(Rule rule)Creates a new BasicParseRunner instance for the given rule.ErrorLocatingParseRunner(Rule rule)Creates a new ErrorLocatingParseRunner instance for the given rule.ErrorLocatingParseRunner(Rule rule, MatchHandler inner)Creates a new ErrorLocatingParseRunner instance for the given rule.ErrorReportingParseRunner(Rule rule, int errorIndex)Creates a new ErrorReportingParseRunner instance for the given rule and the given errorIndex.ErrorReportingParseRunner(Rule rule, int errorIndex, MatchHandler inner)Creates a new ErrorReportingParseRunner instance for the given rule and the given errorIndex.ProfilingParseRunner(Rule rule)Creates a new ProfilingParseRunner instance for the given rule.RecoveringParseRunner(Rule rule)Creates a new RecoveringParseRunner instance for the given rule.RecoveringParseRunner(Rule rule, long timeoutMillis)Creates a new RecoveringParseRunner instance for the given rule.ReportingParseRunner(Rule rule)Creates a new ReportingParseRunner instance for the given rule.TimeoutException(Rule rule, InputBuffer inputBuffer, ParsingResult<?> lastParsingResult)TracingParseRunner(Rule rule)Creates a new TracingParseRunner instance without filter and a console log for the given rule. -
Uses of Rule in org.parboiled.support
Methods in org.parboiled.support with parameters of type Rule Modifier and Type Method Description static Predicate<Tuple2<Context<?>,java.lang.Boolean>>Filters. onlyRules(Rule... rules)A predicate usable as a filter (element) of aTracingParseRunner.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.
-