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 / ImportDeclaration.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-14  |  1.5 KB  |  50 lines

  1. package koala.dynamicjava.tree;
  2.  
  3. import java.util.List;
  4. import koala.dynamicjava.tree.visitor.Visitor;
  5.  
  6. public class ImportDeclaration extends Node {
  7.    public static final String NAME = "name";
  8.    public static final String PACKAGE = "package";
  9.    private String name;
  10.    private boolean pckage;
  11.  
  12.    public String getName() {
  13.       return this.name;
  14.    }
  15.  
  16.    public void setName(String var1) {
  17.       if (var1 == null) {
  18.          throw new IllegalArgumentException("s == null");
  19.       } else {
  20.          ((Node)this).firePropertyChange("name", this.name, this.name = var1);
  21.       }
  22.    }
  23.  
  24.    public boolean isPackage() {
  25.       return this.pckage;
  26.    }
  27.  
  28.    public void setPackage(boolean var1) {
  29.       ((Node)this).firePropertyChange("package", this.pckage, this.pckage = var1);
  30.    }
  31.  
  32.    public Object acceptVisitor(Visitor var1) {
  33.       return var1.visit(this);
  34.    }
  35.  
  36.    public ImportDeclaration(List var1, boolean var2) {
  37.       this(var1, var2, (String)null, 0, 0, 0, 0);
  38.    }
  39.  
  40.    public ImportDeclaration(List var1, boolean var2, String var3, int var4, int var5, int var6, int var7) {
  41.       super(var3, var4, var5, var6, var7);
  42.       if (var1 == null) {
  43.          throw new IllegalArgumentException("ident == null");
  44.       } else {
  45.          this.pckage = var2;
  46.          this.name = TreeUtilities.listToName(var1);
  47.       }
  48.    }
  49. }
  50.