KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > google > gwt > dev > cfg > CompilationSchema


1 /*
2  * Copyright 2006 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 JavaDoc __generated_type_hash_1_class = null;
29
30     protected final String JavaDoc __generated_type_hash_2_hash = null;
31
32     protected final String JavaDoc __rebind_decision_1_in = null;
33     protected final String JavaDoc __rebind_decision_2_out = null;
34     protected Schema __generated_type_hash_begin(String JavaDoc type, String JavaDoc hash) {
35       compilation.recordGeneratedTypeHash(type, hash);
36       return null;
37     }
38
39     protected Schema __rebind_decision_begin(String JavaDoc in, String JavaDoc out) {
40       compilation.recordDecision(in, out);
41       return null;
42     }
43   }
44
45   private final Compilation compilation;
46
47   public CompilationSchema(Compilation compilation) {
48     this.compilation = compilation;
49   }
50
51   protected Schema __cache_entry_begin() {
52     return new BodySchema();
53   }
54 }
55 //CHECKSTYLE_NAMING_ON
Popular Tags