public abstract class TemplateLiteralNode extends Expression
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateLiteralNode.TaggedTemplateLiteralNode |
static class |
TemplateLiteralNode.UntaggedTemplateLiteralNode |
| Modifier | Constructor and Description |
|---|---|
protected |
TemplateLiteralNode(long token,
int finish) |
protected |
TemplateLiteralNode(TemplateLiteralNode literalNode) |
| Modifier and Type | Method and Description |
|---|---|
Node |
accept(NodeVisitor<? extends LexicalContext> visitor)
Provides a means to navigate the IR.
|
<R> R |
accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Provides a means to navigate the IR.
|
static TemplateLiteralNode |
newTagged(long token,
int finish,
List<Expression> rawStrings,
List<Expression> cookedStrings)
Create a new tagged template string literal.
|
static TemplateLiteralNode |
newUntagged(long token,
int finish,
List<Expression> expressions)
Create a new untagged template string literal.
|
getFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedclone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString, toStringprotected TemplateLiteralNode(long token,
int finish)
protected TemplateLiteralNode(TemplateLiteralNode literalNode)
public <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic Node accept(NodeVisitor<? extends LexicalContext> visitor)
Nodepublic static TemplateLiteralNode newTagged(long token, int finish, List<Expression> rawStrings, List<Expression> cookedStrings)
token - tokenfinish - finishpublic static TemplateLiteralNode newUntagged(long token, int finish, List<Expression> expressions)
token - tokenfinish - finishexpressions - interleaved string parts and expressions