001: /*
002: * Copyright 2006 Google Inc.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
005: * use this file except in compliance with the License. You may obtain a copy of
006: * the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
013: * License for the specific language governing permissions and limitations under
014: * the License.
015: */
016:
017: package com.google.gwt.i18n.client;
018:
019: /**
020: * TODO: document me.
021: */
022: public interface TestBinding extends Localizable {
023: String a();
024:
025: String b();
026: }
027:
028: class Wrapper {
029:
030: static class TestBinding_a extends TestBinding_ {
031: public String a() {
032: return "a";
033: }
034: }
035:
036: static class TestBinding_b_C_d extends TestBinding_ {
037: public String a() {
038: return "b_c_d";
039: }
040: }
041:
042: static class TestBinding_b implements TestBinding {
043:
044: public String a() {
045: return "b";
046: }
047:
048: public String b() {
049: return "b";
050: }
051: }
052:
053: static class TestBinding_ implements TestBinding {
054:
055: public String a() {
056: return "default";
057: }
058:
059: public String b() {
060: return "default";
061: }
062: }
063: }
064:
065: class Wrapper2 {
066: public abstract static class TestBindingImpl implements Localizable {
067: abstract String a();
068:
069: abstract String b();
070: }
071:
072: static class TestBindingImpl_a extends TestBindingImpl_b_C_d {
073: public String a() {
074: return "a";
075: }
076: }
077:
078: static class TestBindingImpl_b_C_d extends TestBindingImpl {
079: public String a() {
080: return "b_c_d";
081: }
082:
083: public String b() {
084: return "b_c_d";
085: }
086: }
087:
088: static class TestBinding extends TestBindingImpl {
089:
090: public String a() {
091: return "never should be here";
092: }
093:
094: public String b() {
095: return "never should be here";
096: }
097: }
098:
099: static class TestBindingImpl_ extends TestBindingImpl {
100:
101: public String a() {
102: return "default";
103: }
104:
105: public String b() {
106: return "default";
107: }
108: }
109: }
|