blob: cd761a34d1da52f5d7d42f051cc2b3a10a5daf03 [file] [log] [blame]
/*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.core.interop;
/**
* This concrete test class is not annotated as a @JsType but its parent is.
*/
class ConcreteJsTypeSubclass extends ConcreteJsType {
/**
* Overrides an exported method in the parent class and so will also itself be exported.
*/
@Override
public int publicMethod() {
return 20;
}
/*
* The following members will not be exported since this class is not an @JsType and these members
* do not override already exported members.
*/
public int publicSubclassMethod() {
return super.publicMethod();
}
public static void publicStaticSubclassMethod() {
}
private void privateSubclassMethod() {
}
protected void protectedSubclassMethod() {
}
void packageSubclassMethod() {
}
public int publicSubclassField = 20;
public static int publicStaticSubclassField = 20;
private int privateSubclassField = 20;
protected int protectedSubclassField = 20;
int packageSubclassField = 20;
}