Class graphemesParser
java.lang.Object
org.antlr.v4.runtime.Recognizer<Token,ParserATNSimulator>
org.antlr.v4.runtime.Parser
org.antlr.v4.test.runtime.java.api.perf.graphemesParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class org.antlr.v4.runtime.Parser
Parser.TraceListener, Parser.TrimToSizeListener -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ATNprivate static final String[]static final Stringprivate static final String[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final String[]static final intstatic final String[]Deprecated.static final Vocabularystatic final intFields inherited from class org.antlr.v4.runtime.Parser
_buildParseTrees, _ctx, _errHandler, _input, _parseListeners, _precedenceStack, _syntaxErrors, errorRecoveryMode, errorSyncEnabled, lastConsumed, matchedEOF, reportMatchRequiredFields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int_adaptivePredict(int decision) Hot-path helper used by generated rule methods.private Token_match(int ttype) Monomorphic match used by generated token sites.private boolean_prec(int p) Monomorphic precedence test for left-recursive operator alts.private void_sync()Hot-path helper used by generated rule methods so every decision site shares one monomorphic call to the error strategy.private FailedPredicateExceptionprivate FailedPredicateExceptioncreateFailedPredicateException(String predicate) protected FailedPredicateExceptioncreateFailedPredicateException(String predicate, String message) For debugging and other purposes, might want the grammar name.String[]If this recognizer was generated, it will have a serialized ATN representation of the grammar.String[]Deprecated.Get the vocabulary used by the recognizer.private static String[]private static String[]private static String[]Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, consume, createErrorNode, createTerminalNode, dumpDFA, enterLeftFactoredRule, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, errorSyncEnabled, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getErrorListenerDispatch, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContextsMethods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getATN, getErrorHeader, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
Field Details
-
Extend
public static final int Extend- See Also:
-
ZWJ
public static final int ZWJ- See Also:
-
SpacingMark
public static final int SpacingMark- See Also:
-
EmojiCoreSequence
public static final int EmojiCoreSequence- See Also:
-
EmojiZWJSequence
public static final int EmojiZWJSequence- See Also:
-
Prepend
public static final int Prepend- See Also:
-
NonControl
public static final int NonControl- See Also:
-
CRLF
public static final int CRLF- See Also:
-
HangulSyllable
public static final int HangulSyllable- See Also:
-
RULE_emoji_sequence
public static final int RULE_emoji_sequence- See Also:
-
RULE_grapheme_cluster
public static final int RULE_grapheme_cluster- See Also:
-
RULE_graphemes
public static final int RULE_graphemes- See Also:
-
ruleNames
-
_LITERAL_NAMES
-
_SYMBOLIC_NAMES
-
VOCABULARY
-
tokenNames
Deprecated.UseVOCABULARYinstead. -
_serializedATN
- See Also:
-
_ATN
-
-
Constructor Details
-
graphemesParser
-
-
Method Details
-
makeRuleNames
-
makeLiteralNames
-
makeSymbolicNames
-
getTokenNames
Deprecated.Description copied from class:RecognizerUsed to print out token names like ID during debugging and error reporting. The generated parsers implement a method that overrides this to point to their String[] tokenNames.- Specified by:
getTokenNamesin classRecognizer<Token,ParserATNSimulator>
-
getVocabulary
Description copied from class:RecognizerGet the vocabulary used by the recognizer.- Overrides:
getVocabularyin classRecognizer<Token,ParserATNSimulator> - Returns:
- A
Vocabularyinstance providing information about the vocabulary used by the grammar.
-
getGrammarFileName
Description copied from class:RecognizerFor debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.- Specified by:
getGrammarFileNamein classRecognizer<Token,ParserATNSimulator>
-
getRuleNames
- Specified by:
getRuleNamesin classRecognizer<Token,ParserATNSimulator>
-
getSerializedATN
Description copied from class:RecognizerIf this recognizer was generated, it will have a serialized ATN representation of the grammar.For interpreters, we don't know their serialized ATN despite having created the interpreter from it.
- Overrides:
getSerializedATNin classRecognizer<Token,ParserATNSimulator>
-
createFailedPredicateException
-
createFailedPredicateException
@NotNull private FailedPredicateException createFailedPredicateException(@Nullable String predicate) -
createFailedPredicateException
-
_adaptivePredict
private int _adaptivePredict(int decision) Hot-path helper used by generated rule methods. Prefer this over fetching the interpreter via the public accessor so the field is loaded once and the call site stays monomorphic for the JIT. Named with a leading underscore to avoid colliding with a user rule namedadaptivePredict.Uses
_interpdirectly (same storage asRecognizer.getInterpreter()/Recognizer.setInterpreter(ATNInterpreter)). Callers that replace the simulator must usesetInterpreter; overriding onlygetInterpreter()without updating the field is unsupported for generated decision sites (and for much of the runtime already). -
_sync
private void _sync()Hot-path helper used by generated rule methods so every decision site shares one monomorphic call to the error strategy. Named with a leading underscore to avoid colliding with a user rule namedsync.Skips the virtual sync call when the installed strategy reports isSyncRequired() is false (two-stage SLL / BailErrorStrategy).
-
_match
Monomorphic match used by generated token sites. PublicParser.match(int)remains for handwritten callers and subclasses.reportMatchRequiredis false forDefaultErrorStrategy, so the success path is a field check. A custom strategy that returns true fromANTLRErrorStrategy.isReportMatchRequired()is notified on every successful match. -
_prec
private boolean _prec(int p) Monomorphic precedence test for left-recursive operator alts. Equivalent toParser.precpred(org.antlr.v4.runtime.RuleContext, int)without a virtual call or unused context. -
emoji_sequence
- Throws:
RecognitionException
-
grapheme_cluster
- Throws:
RecognitionException
-
graphemes
- Throws:
RecognitionException
-
VOCABULARYinstead.