home *** CD-ROM | disk | FTP | other *** search
- package espresso;
-
- class New extends AST {
- AST constr;
-
- void print(int var1) {
- Pretty.open(var1, 10);
- System.out.print("new ");
- this.constr.print();
- Pretty.close(var1, 10);
- }
-
- Item gen() {
- this.constr.genLoad();
- return Item.stackItem;
- }
-
- AST simplify() {
- this.constr = this.constr.simplify();
- return this;
- }
-
- void markCaptured(Bits var1) {
- this.constr.markCaptured(var1);
- }
-
- Typ attr(Env var1, int var2, Typ var3) {
- if (Attr.checkKind(super.pos, 12, var2)) {
- super.typ = Attr.checkTyp(super.pos, this.constr.attr(var1, 2, Typ.anyTyp), var3);
- } else {
- super.typ = Typ.errTyp;
- }
-
- return super.typ;
- }
-
- boolean isExpr() {
- return true;
- }
-
- New(int var1, AST var2) {
- super(var1, 7);
- this.constr = var2;
- }
- }
-