Class TemplateLiteralNode.TaggedTemplateLiteralNode

All Implemented Interfaces:
Cloneable
Enclosing class:
TemplateLiteralNode

public static class TemplateLiteralNode.TaggedTemplateLiteralNode extends TemplateLiteralNode
  • Constructor Details

    • TaggedTemplateLiteralNode

      protected TaggedTemplateLiteralNode(long token, int finish, List<Expression> rawStrings, List<Expression> cookedStrings)
  • Method Details

    • getRawStrings

      public List<Expression> getRawStrings()
    • getCookedStrings

      public List<Expression> getCookedStrings()
    • accept

      public Node accept(NodeVisitor<? extends LexicalContext> visitor)
      Description copied from class: Node
      Provides a means to navigate the IR.
      Overrides:
      accept in class TemplateLiteralNode
      Parameters:
      visitor - Node visitor.
      Returns:
      node the node or its replacement after visitation, null if no further visitations are required
    • toString

      public void toString(StringBuilder sb, boolean printType)
      Description copied from class: Node
      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 value
      Specified by:
      toString in class Node
      Parameters:
      sb - string builder
      printType - print type?