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 Details

    • value

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

      String trimmedQuotesValue()
    • prefix

      String prefix()
    • isTripleQuoted

      boolean isTripleQuoted()
    • isInterpolated

      boolean isInterpolated()
    • isTemplate

      boolean isTemplate()
    • formattedExpressions

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