Class StringTemplateExpression


public class StringTemplateExpression extends Expression
StringTemplateExpression AST node type.
 StringTemplateExpression:
    Expression . " StringFragment [StringTemplateComponent {StringTemplateComponent}] "
 
For a multi-line text block, corresponding delimiters are applicable instead of single quotes.
Since:
3.37
Restriction:
This class is not intended to be referenced by clients.
  • Field Details

  • Method Details

    • setProcessor

      public void setProcessor(Expression processor)
      Restriction:
      This method is not intended to be referenced by clients as it is a part of Java preview feature.
    • getProcessor

      public Expression getProcessor()
      Returns the String template processor of this string template expression.
      Restriction:
      This method is not intended to be referenced by clients as it is a part of Java preview feature.
    • setFirstFragment

      public void setFirstFragment(StringFragment firstFragment)
      Restriction:
      This method is not intended to be referenced by clients as it is a part of Java preview feature.
    • getFirstFragment

      public StringFragment getFirstFragment()
      Restriction:
      This method is not intended to be referenced by clients as it is a part of Java preview feature.
    • components

      public List<StringTemplateComponent> components()
      Restriction:
      This method is not intended to be referenced by clients as it is a part of Java preview feature.
    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Since:
      3.24
    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel, boolean previewEnabled)
    • isMultiline

      public boolean isMultiline()
    • setIsMultiline

      public void setIsMultiline(boolean isMultitine)