Class TypeScriptTarget
java.lang.Object
org.antlr.v4.codegen.Target
org.antlr.v4.codegen.target.TypeScriptTarget
-
Field Summary
FieldsFields inherited from class Target
defaultCharValueEscape, gen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHow many bits should be used to do inline token type tests? Java assumes a 64-bit word for bitsets.booleanbooleanbooleanbooleanMethods inherited from class Target
addEscapedChar, addEscapedChar, appendUnicodeEscapedCodePoint, encodeInt16AsCharEscape, escapeChar, escapeIfNeeded, escapeWord, genFile, getAltLabelContextStructName, getBaseListenerFileName, getBaseVisitorFileName, getCodeGenerator, getElementListName, getElementName, getImplicitRuleLabel, getImplicitSetLabel, getImplicitTokenLabel, getLanguage, getListenerFileName, getListLabel, getLoopCounter, getLoopLabel, getRecognizerFileName, getRuleFunctionContextStructName, getRuleFunctionContextStructName, getSerializedATNSegmentLimit, getTargetCharValueEscape, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, getTemplates, getTokenTypeAsTargetLabel, getTokenTypesAsTargetLabels, getVersion, getVisitorFileName, grammarSymbolCausesIssueInGeneratedCode, loadTemplates, needsHeader, shouldUseUnicodeEscapeForCodePointInDoubleQuotedString, templatesExist, visibleGrammarSymbolCausesIssueInGeneratedCode
-
Field Details
-
reservedWords
-
-
Constructor Details
-
TypeScriptTarget
-
-
Method Details
-
getReservedWords
- Specified by:
getReservedWordsin classTarget
-
getInlineTestSetWordSize
public int getInlineTestSetWordSize()Description copied from class:TargetHow many bits should be used to do inline token type tests? Java assumes a 64-bit word for bitsets. Must be a valid wordsize for your target like 8, 16, 32, 64, etc...- Overrides:
getInlineTestSetWordSizein classTarget
-
wantsBaseListener
public boolean wantsBaseListener()- Overrides:
wantsBaseListenerin classTarget
-
wantsBaseVisitor
public boolean wantsBaseVisitor()- Overrides:
wantsBaseVisitorin classTarget
-
supportsOverloadedMethods
public boolean supportsOverloadedMethods()- Overrides:
supportsOverloadedMethodsin classTarget
-
isATNSerializedAsInts
public boolean isATNSerializedAsInts()- Overrides:
isATNSerializedAsIntsin classTarget
-