Interface SwitchLabelNode

All Superinterfaces:
ASTNode, LabelNode

public interface SwitchLabelNode extends LabelNode
Represents a label in a switch statement of the form case constant-expression: or default:.
  • Method Details

    • isDefault

      boolean isDefault()
      Is this a default label?
      true if this is a default label; false if this is a case label
    • getExpression

      ExpressionNode getExpression()
      If this is a case label, returns the constant expression following the case keyword; else returns null
      the constant expression following case or null
    • copy

      Description copied from interface: ASTNode
      Returns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.
      Specified by:
      copy in interface ASTNode
      Specified by:
      copy in interface LabelNode
      deep copy of this node