Class BoxStringConcat

All Implemented Interfaces:
BoxVisitable
Direct Known Subclasses:
BoxStringInterpolation

public class BoxStringConcat extends BoxExpression
AST Node representing a string literal value
  • Constructor Details

    • BoxStringConcat

      public BoxStringConcat(List<BoxExpression> parts, Position position, String sourceText)
      Creates the AST node
      Parameters:
      parts - List of expression to interpolate
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details

    • getValues

      public List<BoxExpression> getValues()
    • setValues

      public void setValues(List<BoxExpression> values)
    • isLiteral

      public boolean isLiteral()
      Description copied from class: BoxExpression
      Utility method to detect if an expression node is a terminal Literal
      Overrides:
      isLiteral in class BoxExpression
      Returns:
      true if it is false otherwise
    • toMap

      public Map<String,Object> toMap()
      Overrides:
      toMap in class BoxNode
    • accept

      public void accept(VoidBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for visitor support.
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for replacing visitor support. Each accept returns the node, or a replacement node.
      Parameters:
      v - the visitor implementation