blob: 9cffb76d3291482150a83f4d4a53f7de5ba1f7e8 [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.client.interop;
import com.google.gwt.core.client.js.JsExport;
/**
* This enum is annotated as @JsExport.
*/
@JsExport
public enum MyExportedEnum {
TEST1, TEST2;
public static int publicStaticMethod() {
return 0;
}
public static final int publicStaticFinalField = 1;
// explicitly marked @JsExport fields must be final
// but ones that are in a @JsExported class don't need to be final
public static int publicStaticField = 2;
public final int publicFinalField = 3;
private static final int privateStaticFinalField = 4;
protected static final int protectedStaticFinalField = 5;
static final int defaultStaticFinalField = 6;
public int publicMethod() {
return 0;
}
protected static int protectedStaticMethod() {
return 0;
}
static int defaultStaticMethod() {
return 0;
}
private static int privateStaticMethod() {
return 0;
}
}