Interface StringElement

  • All Superinterfaces:
    Tree
    All Known Implementing Classes:
    StringElementImpl

    public interface StringElement
    extends Tree
       prefix()value()
     
    See https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-stringliteral
    • Method Detail

      • value

        String value()
        Returns:
        the token value of this literal.
      • trimmedQuotesValue

        String trimmedQuotesValue()
      • isTripleQuoted

        boolean isTripleQuoted()
      • isInterpolated

        boolean isInterpolated()
      • formattedExpressions

        List<FormattedExpression> formattedExpressions()
        Returns:
        Formatted expressions of an f-string. Empty list if the string element is not an f-string.