Class TemplateLiteralNode.TaggedTemplateLiteralNode
java.lang.Object
com.oracle.js.parser.ir.Node
com.oracle.js.parser.ir.Expression
com.oracle.js.parser.ir.TemplateLiteralNode
com.oracle.js.parser.ir.TemplateLiteralNode.TaggedTemplateLiteralNode
- All Implemented Interfaces:
Cloneable
- Enclosing class:
TemplateLiteralNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.js.parser.ir.TemplateLiteralNode
TemplateLiteralNode.TaggedTemplateLiteralNode, TemplateLiteralNode.UntaggedTemplateLiteralNode -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTaggedTemplateLiteralNode(long token, int finish, List<Expression> rawStrings, List<Expression> cookedStrings) -
Method Summary
Modifier and TypeMethodDescriptionaccept(NodeVisitor<? extends LexicalContext> visitor) Provides a means to navigate the IR.voidtoString(StringBuilder sb, boolean printType) Print logic that decides whether to show the optimistic type or not - for example it should not be printed after just parse, when it hasn't been computed, or has been set to a trivially provable valueMethods inherited from class com.oracle.js.parser.ir.TemplateLiteralNode
accept, newTagged, newUntaggedMethods inherited from class com.oracle.js.parser.ir.Expression
getFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedMethods inherited from class com.oracle.js.parser.ir.Node
clone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toString
-
Constructor Details
-
TaggedTemplateLiteralNode
protected TaggedTemplateLiteralNode(long token, int finish, List<Expression> rawStrings, List<Expression> cookedStrings)
-
-
Method Details
-
getRawStrings
-
getCookedStrings
-
accept
Description copied from class:NodeProvides a means to navigate the IR.- Overrides:
acceptin classTemplateLiteralNode- Parameters:
visitor- Node visitor.- Returns:
- node the node or its replacement after visitation, null if no further visitations are required
-
toString
Description copied from class:NodePrint logic that decides whether to show the optimistic type or not - for example it should not be printed after just parse, when it hasn't been computed, or has been set to a trivially provable value
-