01: /*
02: * Copyright 2006 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package com.google.gwt.dev.cfg;
17:
18: import com.google.gwt.dev.js.ast.JsBlock;
19:
20: /**
21: * Produces a deferred binding property value by executing JavaScript code.
22: */
23: public class PropertyProvider {
24:
25: private JsBlock body;
26:
27: private final ModuleDef module;
28: private final Property property;
29:
30: public PropertyProvider(ModuleDef module, Property property) {
31: this .module = module;
32: this .property = property;
33: }
34:
35: public JsBlock getBody() {
36: return body;
37: }
38:
39: public ModuleDef getModule() {
40: return module;
41: }
42:
43: public Property getProperty() {
44: return property;
45: }
46:
47: public void setBody(JsBlock body) {
48: this.body = body;
49: }
50: }
|