Interface Rule<S,T>
- All Known Implementing Classes:
ComponentPredicateParser.ComponentLookupRule, ComponentPredicateParser.ElementLookupRule, ComponentPredicateParser.PredicateLookupRule, ComponentPredicateParser.TagLookupRule, GreedyPatternParseRule, GreedyPredicateParseRule, IdentifierParseRule, NumberRunParseRule, ResourceLookupRule, Rule.WrappedTerm, SnbtGrammar.SimpleHexLiteralParseRule, TagParseRule, UnquotedStringParseRule
public interface Rule<S,T>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic final record -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,T> Rule <S, T> fromTerm(Term<S> child, Rule.RuleAction<S, T> action) static <S,T> Rule <S, T> fromTerm(Term<S> child, Rule.SimpleRuleAction<S, T> action) @Nullable Tparse(ParseState<S> state)
-
Method Details
-
parse
-
fromTerm
-
fromTerm
-