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 int
private CachedParseState.PositionCache[]
private final Scope
private final CachedParseState<S>.Silent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CachedParseState.PositionCache
getCacheForPosition
(int p_410075_) <T> T
void
scope()
silent()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
scope
in interfaceParseState<S>
-
errorCollector
- Specified by:
errorCollector
in interfaceParseState<S>
-
parse
- Specified by:
parse
in interfaceParseState<S>
-
getCacheForPosition
-
acquireControl
- Specified by:
acquireControl
in interfaceParseState<S>
-
releaseControl
public void releaseControl()- Specified by:
releaseControl
in interfaceParseState<S>
-
silent
- Specified by:
silent
in interfaceParseState<S>
-