Class CaseStatement

  • All Implemented Interfaces:
    DeclarationHolder, Persistable, IVisitable<Node>

    public class CaseStatement
    extends Statement
    Case statement of the form case expression : that serves as entry point for switch statements, the only allowed substatements are side effekt free primitive expression for the selector to choose from. THe statements executed after the entry are on the same AST hierarchy in the parent compound statement.
    • Field Detail

      • caseExpression

        public Expression caseExpression
        Primitive side effect free statement that has to match with the evaluated selector in SwitchStatement
    • Constructor Detail

      • CaseStatement

        public CaseStatement()
    • Method Detail

      • getCaseExpression

        public Expression getCaseExpression()
      • setCaseExpression

        public void setCaseExpression​(Expression caseExpression)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Statement