root/trunk/ProjectFortress/src/com/sun/fortress/interpreter/evaluator/BuildObjectEnvironment.java

Revision 2649, 1.7 kB (checked in by mspiegel, 3 weeks ago)

[warnings] Removed all unused imports in com.sun.fortress.interpreter.* and children packages.

Line 
1 /*******************************************************************************
2     Copyright 2008 Sun Microsystems, Inc.,
3     4150 Network Circle, Santa Clara, California 95054, U.S.A.
4     All rights reserved.
5
6     U.S. Government Rights - Commercial software.
7     Government users are subject to the Sun Microsystems, Inc. standard
8     license agreement and applicable provisions of the FAR and its supplements.
9
10     Use is subject to license terms.
11
12     This distribution may include materials developed by third parties.
13
14     Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered
15     trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
16  ******************************************************************************/
17
18 package com.sun.fortress.interpreter.evaluator;
19
20 import java.util.Set;
21
22 import com.sun.fortress.interpreter.evaluator.types.FType;
23 import com.sun.fortress.interpreter.evaluator.values.GenericMethod;
24 import com.sun.fortress.interpreter.evaluator.values.MethodClosure;
25 import com.sun.fortress.interpreter.evaluator.values.Simple_fcn;
26 import com.sun.fortress.nodes_util.Applicable;
27 import com.sun.fortress.nodes.FnAbsDeclOrDecl;
28
29
30 public class BuildObjectEnvironment extends BuildTraitEnvironment {
31
32
33     public BuildObjectEnvironment(Environment within, Environment methodEnvironment, FType definer, Set<String> fields) {
34         super(within, methodEnvironment, definer, fields);
35         // TODO Auto-generated constructor stub
36     }
37
38     protected Simple_fcn newClosure(Environment e, Applicable x) {
39         return new MethodClosure(containing,x, definer);
40     }
41
42     protected GenericMethod newGenericClosure(Environment e, FnAbsDeclOrDecl x) {
43         return new GenericMethod(containing, e, x, definer, false);
44     }
45
46
47
48 }
Note: See TracBrowser for help on using the browser.