Class EmptyStatement


public final class EmptyStatement extends Statement
A no-op statement ";".
  • Constructor Details

    • EmptyStatement

      public EmptyStatement(int position)
  • Method Details

    • getKind

      public Node.StatementKind getKind()
      Specified by:
      getKind in class Statement
      See Also:
    • accept

      public boolean accept(@Nonnull TreeVisitor visitor)
      Description copied from class: Node
      Visit this AST with a given visitor.
      Specified by:
      accept in class Node
      Returns:
      true to stop recursion and propagate true up the stack, false to continue
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class Statement
    • toString

      @Nonnull public String toString()
      Specified by:
      toString in class Node
      Returns:
      a string representation of this AST node