ErroneousTree (Java SE 25 & JDK 25)
Description: declaration: module: jdk.compiler, package: com.sun.source.tree, interface: ErroneousTree
Keywords: com.sun.source.tree.ErroneousTree interface

# Interface ErroneousTree

All Superinterfaces:
  `ExpressionTree, Tree`

public interface ErroneousTree extends ExpressionTree
A tree node to stand in for a malformed expression.

Since:
  1.6

- ## Nested Class Summary

  ### Nested classes/interfaces declared in interface Tree

  `Tree.Kind`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<? extends Tree>`
  `getErrorTrees()`
  Returns any trees that were saved in this node.

  ### Methods declared in interface Tree

  `accept, getKind`

- ## Method Details

  - ### getErrorTrees

    List<? extends Tree> getErrorTrees()
    Returns any trees that were saved in this node.
    Returns:
      the trees