Class Statement

java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Statement
Direct Known Subclasses:
Block, BreakStatement, ContinueStatement, DiscardStatement, EmptyStatement, ExpressionStatement, ForStatement, IfStatement, ReturnStatement, SwitchCase, SwitchStatement, VariableDeclaration

public abstract class Statement extends Node
Abstract supertype of all statements.
  • Constructor Details

    • Statement

      protected Statement(int position)
  • Method Details

    • getKind

      public abstract Node.StatementKind getKind()
      See Also:
    • accept

      public final 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()