Class CachedParseState<S>
java.lang.Object
net.minecraft.util.parsing.packrat.CachedParseState<S>
- All Implemented Interfaces:
ParseState<S>
- Direct Known Subclasses:
StringReaderParserState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) static class(package private) class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CachedParseState.SimpleControl[]private final ErrorCollector<S> private intprivate CachedParseState.PositionCache[]private final Scopeprivate final CachedParseState<S>.Silent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CachedParseState.PositionCachegetCacheForPosition(int pPosition) <T> Tvoidscope()silent()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.parsing.packrat.ParseState
input, mark, parseTopRule, restore
-
Field Details
-
positionCache
-
errorCollector
-
scope
-
controlCache
-
nextControlToReturn
private int nextControlToReturn -
silent
-
-
Constructor Details
-
CachedParseState
-
-
Method Details
-
scope
- Specified by:
scopein interfaceParseState<S>
-
errorCollector
- Specified by:
errorCollectorin interfaceParseState<S>
-
parse
- Specified by:
parsein interfaceParseState<S>
-
getCacheForPosition
-
acquireControl
- Specified by:
acquireControlin interfaceParseState<S>
-
releaseControl
public void releaseControl()- Specified by:
releaseControlin interfaceParseState<S>
-
silent
- Specified by:
silentin interfaceParseState<S>
-