Package org.parboiled.annotations
Annotation Type SkipNode
-
@Retention(RUNTIME) @Target(METHOD) public @interface SkipNode
Annotation that can be used on parser methods returningRule
objects. Instructs parboiled to not create a parse tree node for this rule. The parse tree nodes of all subrules are directly attached to the parent of this rule (or more correctly: the first ancestor not carrying @SkipNode). Note that, even though a rule carrying @SkipNode does not create a parse tree node of its own and is therefore "invisible" in the parse tree, the rule still exists as a regular rule in the rule tree and is accompanied by a "regular" ruleContext
during rule matching.