Interface StringElement
-
- All Superinterfaces:
Tree
- All Known Implementing Classes:
StringElementImpl
public interface StringElement extends Tree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<FormattedExpression>formattedExpressions()List<Expression>interpolatedExpressions()Deprecated.UseformattedExpressions()instead.booleanisInterpolated()booleanisTripleQuoted()Stringprefix()StringtrimmedQuotesValue()Stringvalue()
-
-
-
Method Detail
-
value
String value()
- Returns:
- the token value of this literal.
-
trimmedQuotesValue
String trimmedQuotesValue()
-
prefix
String prefix()
-
isTripleQuoted
boolean isTripleQuoted()
-
isInterpolated
boolean isInterpolated()
-
interpolatedExpressions
@Deprecated List<Expression> interpolatedExpressions()
Deprecated.UseformattedExpressions()instead.
-
formattedExpressions
List<FormattedExpression> formattedExpressions()
- Returns:
- Formatted expressions of an f-string. Empty list if the string element is not an f-string.
-
-