home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Software für Mac-OS X / Entwickler-Tools / netbeans / modules / ext / djava.jar / koala / dynamicjava / tree / InstanceOfExpression.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-14  |  1.8 KB  |  54 lines

  1. package koala.dynamicjava.tree;
  2.  
  3. import koala.dynamicjava.tree.visitor.Visitor;
  4.  
  5. public class InstanceOfExpression extends Expression implements ExpressionContainer {
  6.    public static final String REFERENCE_TYPE = "referenceType";
  7.    private Expression expression;
  8.    private Type referenceType;
  9.  
  10.    public Expression getExpression() {
  11.       return this.expression;
  12.    }
  13.  
  14.    public void setExpression(Expression var1) {
  15.       if (var1 == null) {
  16.          throw new IllegalArgumentException("e == null");
  17.       } else {
  18.          ((Node)this).firePropertyChange("expression", this.expression, this.expression = var1);
  19.       }
  20.    }
  21.  
  22.    public Type getReferenceType() {
  23.       return this.referenceType;
  24.    }
  25.  
  26.    public void setReferenceType(Type var1) {
  27.       if (var1 == null) {
  28.          throw new IllegalArgumentException("t == null");
  29.       } else {
  30.          ((Node)this).firePropertyChange("referenceType", this.referenceType, this.referenceType = var1);
  31.       }
  32.    }
  33.  
  34.    public Object acceptVisitor(Visitor var1) {
  35.       return var1.visit(this);
  36.    }
  37.  
  38.    public InstanceOfExpression(Expression var1, Type var2) {
  39.       this(var1, var2, (String)null, 0, 0, 0, 0);
  40.    }
  41.  
  42.    public InstanceOfExpression(Expression var1, Type var2, String var3, int var4, int var5, int var6, int var7) {
  43.       super(var3, var4, var5, var6, var7);
  44.       if (var1 == null) {
  45.          throw new IllegalArgumentException("exp == null");
  46.       } else if (var2 == null) {
  47.          throw new IllegalArgumentException("t == null");
  48.       } else {
  49.          this.expression = var1;
  50.          this.referenceType = var2;
  51.       }
  52.    }
  53. }
  54.