Module jdk.compiler

Interface StringTemplateTree

All Superinterfaces:
ExpressionTree, Tree

public interface StringTemplateTree extends ExpressionTree
StringTemplateTree is a reflective preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A tree node for a string template expression.
  • Method Details

    • getProcessor

      ExpressionTree getProcessor()
      Returns templated string processor (may be qualified) or null.
      Returns:
      templated string processor
    • getFragments

      List<String> getFragments()
      Returns string fragments.
      Returns:
      string fragments
    • getExpressions

      List<? extends ExpressionTree> getExpressions()
      Returns list of expressions.
      Returns:
      list of expressions