Class StringLiteralExpr

All Implemented Interfaces:
NodeWithRange<Node>, NodeWithTokenRange<Node>, Observable, Visitable, HasParentNode<Node>, Cloneable

public class StringLiteralExpr extends LiteralStringValueExpr
A literal string.
"Hello World!"
"\"\n"
"™"
"™"
"💩"
Author:
Julio Vilmar Gesser
  • Constructor Details

    • StringLiteralExpr

      public StringLiteralExpr()
    • StringLiteralExpr

      public StringLiteralExpr(String value)
      Creates a string literal expression from given string. Escapes EOL characters.
      Parameters:
      value - the value of the literal
    • StringLiteralExpr

      public StringLiteralExpr(TokenRange tokenRange, String value)
      This constructor is used by the parser and is considered private.
  • Method Details