public abstract class AbstractTypeRule extends Rule
| Constructor and Description |
|---|
AbstractTypeRule() |
| Modifier and Type | Method and Description |
|---|---|
Node |
apply(Node node)
Applies the rule to the node using the following criteria
- if rule does not match returns an ErrorNode and stops processing
- if rule matches, applies rules to children
- if rule contains a NodeFactory, returns the result of it
- else returns node
Only structure rules (
ObjectRule, ArrayRule, KeyValueRule) replace child nodes. |
createNodeUsingFactory, getDescription, getSuggestions, getSuggestions, matches, then, then@Nonnull public Node apply(@Nonnull Node node)
RuleObjectRule, ArrayRule, KeyValueRule) replace child nodes.Copyright © 2016. All rights reserved.