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

Revision 4002, 1.8 KB (checked in by sukyoungryu, 4 months ago)

[copyright] Fixed copyright notices.

Line 
1/*******************************************************************************
2 Copyright 2009 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
18package com.sun.fortress.interpreter.evaluator;
19
20import com.sun.fortress.interpreter.evaluator.types.FType;
21import com.sun.fortress.interpreter.evaluator.values.GenericMethod;
22import com.sun.fortress.interpreter.evaluator.values.MethodClosure;
23import com.sun.fortress.interpreter.evaluator.values.Simple_fcn;
24import com.sun.fortress.nodes.Applicable;
25import com.sun.fortress.nodes.FnDecl;
26
27import java.util.Set;
28
29
30public class BuildObjectEnvironment extends BuildTraitEnvironment {
31
32
33    public BuildObjectEnvironment(Environment within,
34                                  Environment methodEnvironment,
35                                  FType definer,
36                                  Set<String> fields) {
37        super(within, methodEnvironment, definer, fields);
38        // TODO Auto-generated constructor stub
39    }
40
41    protected Simple_fcn newClosure(Environment e, Applicable x) {
42        return new MethodClosure(containing, x, definer);
43    }
44
45    protected GenericMethod newGenericClosure(Environment e, FnDecl x) {
46        return new GenericMethod(containing, e, x, definer, false);
47    }
48
49
50}
Note: See TracBrowser for help on using the browser.