home *** CD-ROM | disk | FTP | other *** search
- package koala.dynamicjava.tree;
-
- import koala.dynamicjava.tree.visitor.Visitor;
-
- public class LabeledStatement extends Statement {
- public static final String LABEL = "label";
- public static final String STATEMENT = "statement";
- private String label;
- private Node statement;
-
- public String getLabel() {
- return this.label;
- }
-
- public void setLabel(String var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("s == null");
- } else {
- ((Node)this).firePropertyChange("label", this.label, this.label = var1);
- }
- }
-
- public Node getStatement() {
- return this.statement;
- }
-
- public void setStatement(Node var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("n == null");
- } else {
- ((Node)this).firePropertyChange("statement", this.statement, this.statement = var1);
- }
- }
-
- public Object acceptVisitor(Visitor var1) {
- return var1.visit(this);
- }
-
- public LabeledStatement(String var1, Node var2) {
- this(var1, var2, (String)null, 0, 0, 0, 0);
- }
-
- public LabeledStatement(String var1, Node var2, String var3, int var4, int var5, int var6, int var7) {
- super(var3, var4, var5, var6, var7);
- if (var1 == null) {
- throw new IllegalArgumentException("label == null");
- } else if (var2 == null) {
- throw new IllegalArgumentException("stat == null");
- } else {
- this.label = var1;
- this.statement = var2;
- }
- }
- }
-