ErroneousTree (Java SE 26 & JDK 26)
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`
  Modifier and Type
  Interface
  Description
  `static enum`
  `Tree.Kind`
  Enumerates all kinds of trees.

- ## 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`
  Modifier and Type
  Method
  Description
  `<R,D> R`
  `accept(TreeVisitor<R,D> visitor, D data)`
  Accept method used to implement the visitor pattern.
  `Tree.Kind`
  `getKind()`
  Returns the kind of this tree.

- ## Method Details

  - ### getErrorTrees

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