|
Revision 4002, 1.8 KB
(checked in by sukyoungryu, 4 months ago)
|
|
[copyright] Fixed copyright notices.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | package com.sun.fortress.interpreter.evaluator; |
|---|
| 19 | |
|---|
| 20 | import com.sun.fortress.interpreter.evaluator.types.FType; |
|---|
| 21 | import com.sun.fortress.interpreter.evaluator.values.GenericMethod; |
|---|
| 22 | import com.sun.fortress.interpreter.evaluator.values.MethodClosure; |
|---|
| 23 | import com.sun.fortress.interpreter.evaluator.values.Simple_fcn; |
|---|
| 24 | import com.sun.fortress.nodes.Applicable; |
|---|
| 25 | import com.sun.fortress.nodes.FnDecl; |
|---|
| 26 | |
|---|
| 27 | import java.util.Set; |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | public 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 | |
|---|
| 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 | } |
|---|