Package org.antlr.v4.codegen.target
Class TypeScriptTarget
java.lang.Object
org.antlr.v4.codegen.Target
org.antlr.v4.codegen.target.TypeScriptTarget
-
Field Summary
FieldsFields inherited from class org.antlr.v4.codegen.Target
defaultCharValueEscape, gen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
How many bits should be used to do inline token type tests? Java assumes a 64-bit word for bitsets.boolean
boolean
boolean
boolean
Methods inherited from class org.antlr.v4.codegen.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:
getReservedWords
in classTarget
-
getInlineTestSetWordSize
public int getInlineTestSetWordSize()Description copied from class:Target
How 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:
getInlineTestSetWordSize
in classTarget
-
wantsBaseListener
public boolean wantsBaseListener()- Overrides:
wantsBaseListener
in classTarget
-
wantsBaseVisitor
public boolean wantsBaseVisitor()- Overrides:
wantsBaseVisitor
in classTarget
-
supportsOverloadedMethods
public boolean supportsOverloadedMethods()- Overrides:
supportsOverloadedMethods
in classTarget
-
isATNSerializedAsInts
public boolean isATNSerializedAsInts()- Overrides:
isATNSerializedAsInts
in classTarget
-