Interface QuotedStringTree

All Superinterfaces:
ExpressionTree, HasTextRange, JclTree

@Beta public interface QuotedStringTree extends ExpressionTree
A string value enclosed in apostrophes, such as 'HELLO'.

As quoted strings may be continued across several lines (see IBM Reference - Continuing parameter fields enclosed in apostrophes ), the tree may contain multiple syntax tokens, one for each continued line.
The method stringValue() returns the value of all parts of the quoted string joined together.

  • Method Details

    • openingQuote

      SyntaxToken openingQuote()
      Returns:
      the opening quote token.
    • values

      List<SyntaxToken> values()
      Returns:
      the list of tokens that make up the value of the quoted string.
    • stringValue

      String stringValue()
      Returns:
      the value of all parts of the quoted string joined together.
    • closingQuote

      SyntaxToken closingQuote()
      Returns:
      the closing quote token.