summaryrefslogtreecommitdiff
path: root/src/main/java/io/devnulllabs/openjava/ptree/CaseGroup.java
blob: 3fc130a5a21e1a8b9a46b296ad0c702d1384c31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * CaseGroupjava 1.0
 *
 *
 * Jun 20, 1997 by mich
 * Sep 29, 1997 by mich
 *
 * @see io.devnulllabs.openjava.ptree.ParseTree
 * @version 1.0 last updated:  Sep 29, 1997
 * @author  Michiaki Tatsubori
 */
package io.devnulllabs.openjava.ptree;

import io.devnulllabs.openjava.ptree.util.ParseTreeVisitor;

/**
 *
 */
public class CaseGroup extends NonLeaf {

    public CaseGroup(ExpressionList cll, StatementList bsl) {
        super();
        set(cll, bsl);
    }

    CaseGroup() {
        super();
    }

    public ExpressionList getLabels() {
        return (ExpressionList) elementAt(0);
    }

    public StatementList getStatements() {
        return (StatementList) elementAt(1);
    }

    public void accept(ParseTreeVisitor v) throws ParseTreeException {
        v.visit(this);
    }

}