home *** CD-ROM | disk | FTP | other *** search
- package koala.dynamicjava.tree;
-
- import koala.dynamicjava.tree.visitor.Visitor;
-
- public class IfThenStatement extends Statement {
- public static final String CONDITION = "condition";
- public static final String THEN_STATEMENT = "thenStatement";
- private Expression condition;
- private Node thenStatement;
-
- public Expression getCondition() {
- return this.condition;
- }
-
- public void setCondition(Expression var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("e == null");
- } else {
- ((Node)this).firePropertyChange("condition", this.condition, this.condition = var1);
- }
- }
-
- public Node getThenStatement() {
- return this.thenStatement;
- }
-
- public void setThenStatement(Node var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("node == null");
- } else {
- ((Node)this).firePropertyChange("thenStatement", this.thenStatement, this.thenStatement = var1);
- }
- }
-
- public Object acceptVisitor(Visitor var1) {
- return var1.visit(this);
- }
-
- public IfThenStatement(Expression var1, Node var2) {
- this(var1, var2, (String)null, 0, 0, 0, 0);
- }
-
- public IfThenStatement(Expression 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("cond == null");
- } else if (var2 == null) {
- throw new IllegalArgumentException("tstmt == null");
- } else {
- this.condition = var1;
- this.thenStatement = var2;
- }
- }
- }
-