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.util.xml.Schema;
19:
20: //CHECKSTYLE_NAMING_OFF
21: /**
22: * The XML schema class to parse XML for deferred binding conditions.
23: */
24: public class CompilationSchema extends Schema {
25:
26: private final class BodySchema extends Schema {
27:
28: protected final String __generated_type_hash_1_class = null;
29:
30: protected final String __generated_type_hash_2_hash = null;
31:
32: protected final String __rebind_decision_1_in = null;
33: protected final String __rebind_decision_2_out = null;
34:
35: protected Schema __generated_type_hash_begin(String type,
36: String hash) {
37: compilation.recordGeneratedTypeHash(type, hash);
38: return null;
39: }
40:
41: protected Schema __rebind_decision_begin(String in, String out) {
42: compilation.recordDecision(in, out);
43: return null;
44: }
45: }
46:
47: private final Compilation compilation;
48:
49: public CompilationSchema(Compilation compilation) {
50: this .compilation = compilation;
51: }
52:
53: protected Schema __cache_entry_begin() {
54: return new BodySchema();
55: }
56: }
57: //CHECKSTYLE_NAMING_ON
|