| Modifier and Type | Field and Description |
|---|---|
| private Token | |
| private final Deque | scopeStrictModes
Stores values of nested modes. |
| private int | templateDepth
Keeps track of the current depth of nested template string backticks. |
| private boolean | useStrictCurrent
Current value of strict mode Can be defined during parsing, see StringFunctions.js and StringGlobal.js samples |
| private boolean | useStrictDefault
Default value of strict mode Can be defined externally by setUseStrictDefault |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public void | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| public boolean | |
| public Token | Returns: the next token from the character stream.Overrides org. Implements org. Return the next token from the character stream and records this last token in case it resides on the default channel. |
| protected void | |
| protected void | |
| protected void | |
| public void |
| lastToken | back to summary |
|---|---|
| private Token lastToken | |
| scopeStrictModes | back to summary |
|---|---|
| private final Deque<Boolean> scopeStrictModes Stores values of nested modes. By default, mode is strict or defined externally (useStrictDefault) | |
| templateDepth | back to summary |
|---|---|
| private int templateDepth Keeps track of the current depth of nested template string backticks. E.g. after the X in: `${a ? `${X templateDepth will be 2. This variable is needed to determine if a `}` is a plain CloseBrace, or one that closes an expression inside a template string. | |
| useStrictCurrent | back to summary |
|---|---|
| private boolean useStrictCurrent Current value of strict mode Can be defined during parsing, see StringFunctions.js and StringGlobal.js samples | |
| useStrictDefault | back to summary |
|---|---|
| private boolean useStrictDefault Default value of strict mode Can be defined externally by setUseStrictDefault | |
| JavaScriptLexerBase | back to summary |
|---|---|
| public JavaScriptLexerBase(CharStream input) | |
| DecreaseTemplateDepth | back to summary |
|---|---|
| public void DecreaseTemplateDepth() | |
| getStrictDefault | back to summary |
|---|---|
| public boolean getStrictDefault() | |
| IncreaseTemplateDepth | back to summary |
|---|---|
| public void IncreaseTemplateDepth() | |
| IsInTemplateString | back to summary |
|---|---|
| public boolean IsInTemplateString() | |
| IsJsxPossible | back to summary |
|---|---|
| protected boolean IsJsxPossible() Returns | |
| IsRegexPossible | back to summary |
|---|---|
| protected boolean IsRegexPossible() Returns | |
| IsStartOfFile | back to summary |
|---|---|
| public boolean IsStartOfFile() | |
| IsStrictMode | back to summary |
|---|---|
| public boolean IsStrictMode() | |
| nextToken | back to summary |
|---|---|
| public Token nextToken() Overrides org. Implements org. Return the next token from the character stream and records this last token in case it resides on the default channel. This recorded token is used to determine when the lexer could possibly match a regex literal. Also changes scopeStrictModes stack if tokenize special string 'use strict'; | |
| ProcessCloseBrace | back to summary |
|---|---|
| protected void ProcessCloseBrace() | |
| ProcessOpenBrace | back to summary |
|---|---|
| protected void ProcessOpenBrace() | |
| ProcessStringLiteral | back to summary |
|---|---|
| protected void ProcessStringLiteral() | |
| setUseStrictDefault | back to summary |
|---|---|
| public void setUseStrictDefault(boolean value) | |