Class TemplateLiteralNode
java.lang.Object
com.oracle.js.parser.ir.Node
com.oracle.js.parser.ir.Expression
com.oracle.js.parser.ir.TemplateLiteralNode
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
TemplateLiteralNode.TaggedTemplateLiteralNode, TemplateLiteralNode.UntaggedTemplateLiteralNode
Template string literal.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTemplateLiteralNode(long token, int finish) protectedTemplateLiteralNode(TemplateLiteralNode literalNode) -
Method Summary
Modifier and TypeMethodDescriptionaccept(NodeVisitor<? extends LexicalContext> visitor) Provides a means to navigate the IR.<R> Raccept(TranslatorNodeVisitor<? extends LexicalContext, R> visitor) Provides a means to navigate the IR.static TemplateLiteralNodenewTagged(long token, int finish, List<Expression> rawStrings, List<Expression> cookedStrings) Create a new tagged template string literal.static TemplateLiteralNodenewUntagged(long token, int finish, List<Expression> expressions) Create a new untagged template string literal.Methods inherited from class Expression
getFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedMethods inherited from class Node
clone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString, toString
-
Constructor Details
-
TemplateLiteralNode
protected TemplateLiteralNode(long token, int finish) -
TemplateLiteralNode
-
-
Method Details
-
accept
Description copied from class:NodeProvides a means to navigate the IR. -
accept
Description copied from class:NodeProvides a means to navigate the IR. -
newTagged
public static TemplateLiteralNode newTagged(long token, int finish, List<Expression> rawStrings, List<Expression> cookedStrings) Create a new tagged template string literal.- Parameters:
token- tokenfinish- finish- Returns:
- the new literal node
-
newUntagged
Create a new untagged template string literal.- Parameters:
token- tokenfinish- finishexpressions- interleaved string parts and expressions- Returns:
- the new template literal node
-