Class ParseState<S>
java.lang.Object
net.minecraft.util.parsing.packrat.ParseState<S>
- Direct Known Subclasses:
StringReaderParserState
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Dictionary
<S> private final ErrorCollector
<S> private final Map
<ParseState.CacheKey<?>, ParseState.CacheEntry<?>> -
Constructor Summary
ModifierConstructorDescriptionprotected
ParseState
(Dictionary<S> p_336166_, ErrorCollector<S> p_336116_) -
Method Summary
Modifier and TypeMethodDescriptionabstract S
input()
private <T> ParseState.CacheEntry
<T> lookupInCache
(ParseState.CacheKey<T> p_335816_) abstract int
mark()
<T> Optional
<T> <T> Optional
<T> parseTopRule
(Atom<T> p_335920_) abstract void
restore
(int p_335826_) private <T> void
storeInCache
(ParseState.CacheKey<T> p_336008_, Optional<T> p_335995_)
-
Field Details
-
ruleCache
-
dictionary
-
errorCollector
-
-
Constructor Details
-
ParseState
-
-
Method Details
-
errorCollector
-
parseTopRule
-
parse
-
lookupInCache
-
storeInCache
-
input
-
mark
public abstract int mark() -
restore
public abstract void restore(int p_335826_)
-