Class SwitchCase


public final class SwitchCase extends Statement
A single case of a 'switch' statement.
  • Method Details Link icon

    • make Link icon

      @Nonnull public static SwitchCase make(int position, long value, Statement statement)
    • makeDefault Link icon

      @Nonnull public static SwitchCase makeDefault(int position, Statement statement)
    • isDefault Link icon

      public boolean isDefault()
    • getValue Link icon

      public long getValue()
    • getStatement Link icon

      public Statement getStatement()
    • setStatement Link icon

      public void setStatement(Statement statement)
    • getKind Link icon

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

      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
    • toString Link icon

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