001 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
002 // for details. All rights reserved. Use of this source code is governed by a
003 // BSD-style license that can be found in the LICENSE file.
004
005 package com.google.dart.compiler.backend.js.ast;
006
007 /**
008 * Represents the JavaScript case statement.
009 */
010 public final class JsCase extends JsSwitchMember {
011 private JsExpression caseExpression;
012
013 public JsCase() {
014 super();
015 }
016
017 public JsExpression getCaseExpression() {
018 return caseExpression;
019 }
020
021 public void setCaseExpression(JsExpression caseExpression) {
022 this.caseExpression = caseExpression;
023 }
024
025 @Override
026 public void accept(JsVisitor v) {
027 v.visitCase(this);
028 }
029
030 @Override
031 public void acceptChildren(JsVisitor visitor) {
032 visitor.accept(caseExpression);
033 super.acceptChildren(visitor);
034 }
035 }