/** * Super-source of JavaScriptExceptionBase that extends from JsException. */ @GwtScriptOnly public class JavaScriptExceptionBase extends JsException { protected JavaScriptExceptionBase(Object e) { super(e); } }
/** * Supersource (webonly) version of SafeHtmlHostedModeUtils. */ @GwtScriptOnly public class SafeHtmlHostedModeUtils { // Unused in super-source; only defined to avoid compiler warnings public static final String FORCE_CHECK_COMPLETE_HTML = null; public static void maybeCheckCompleteHtml(String html) { // This check is a noop in web mode. } // Unused in super-source; only defined to avoid compiler warnings public static void setForceCheckCompleteHtml(boolean check) { } static void setForceCheckCompleteHtmlFromProperty() { } }
/** * A GWTTestAccessor implementation that utilizes generated test class metadata for script mode. */ @GwtScriptOnly public class GWTTestAccessor { private final JavaScriptObject data = GWTTestMetadata.create().get(); public final GWTTestCase newInstance(String className) { return (GWTTestCase) invoke(null, className, "new"); } public final native Object invoke(GWTTestCase o, String className, String methodName) /*-{ return this.@com.google.gwt.junit.client.impl.GWTTestAccessor::data[className][methodName](o); }-*/; }
/** * Supersource (webonly) version of SafeUrilHostedModeUtils. */ @GwtScriptOnly public class SafeUriHostedModeUtils { // Unused in super-source; only defined to avoid compiler warnings public static final String FORCE_CHECK_VALID_URI = null; static final String HREF_DISCRETE_UCSCHAR = null; public static void maybeCheckValidUri(String uri) { // This check is a noop in web mode. } // Unused in super-source; only defined to avoid compiler warnings public static boolean isValidUriCharset(String uri) { return true; } public static void setForceCheckValidUri(boolean check) { } public static void setForceCheckValidUriFromProperty() { } }
@GwtScriptOnly public class SafeStylesHostedModeUtils {
@GwtScriptOnly public class ReflectionHelper {
@GwtScriptOnly public class ThrowableTypeResolver {
@SuppressWarnings("deprecation") @GwtScriptOnly public static native void registerWindowOnError(boolean reportAlways) /*-{
@GwtScriptOnly public class WeakMapping {
@GwtScriptOnly public final class ClientSerializationStreamReader extends AbstractSerializationStreamReader {
@GwtScriptOnly public final class JsoSplittable extends JavaScriptObject implements Splittable, HasSplittable { private static boolean stringifyFastTested;
@GwtScriptOnly public class StringQuoter { public static Splittable create(boolean value) {
@GwtScriptOnly @SuppressWarnings({"unchecked", "rawtypes"}) public final class EnumMap_CustomFieldSerializer extends CustomFieldSerializer<EnumMap> {
@GwtScriptOnly public static native void setClassData(Class<?> cls, Object data) /*-{ cls.@java.lang.Class::classData = data; }-*/;
@GwtScriptOnly public static native void setClassData(Class<?> cls, Object data) /*-{ cls.@java.lang.Class::classData = data; }-*/;
/** * A GWTTestAccessor implementation that utilizes generated test class metadata for script mode. */ @GwtScriptOnly public class GWTTestAccessor { private final JavaScriptObject data = GWTTestMetadata.create().get(); public final GWTTestCase newInstance(String className) { return (GWTTestCase) invoke(null, className, "new"); } public final native Object invoke(GWTTestCase o, String className, String methodName) /*-{ return this.@com.google.gwt.junit.client.impl.GWTTestAccessor::data[className][methodName](o); }-*/; }
/** * A GWTTestAccessor implementation that utilizes generated test class metadata for script mode. */ @GwtScriptOnly public class GWTTestAccessor { private final JavaScriptObject data = GWTTestMetadata.create().get(); public final GWTTestCase newInstance(String className) { return (GWTTestCase) invoke(null, className, "new"); } public final native Object invoke(GWTTestCase o, String className, String methodName) /*-{ return this.@com.google.gwt.junit.client.impl.GWTTestAccessor::data[className][methodName](o); }-*/; }
/** * Supersource (webonly) version of SafeHtmlHostedModeUtils. */ @GwtScriptOnly public class SafeHtmlHostedModeUtils { // Unused in super-source; only defined to avoid compiler warnings public static final String FORCE_CHECK_COMPLETE_HTML = null; public static void maybeCheckCompleteHtml(String html) { // This check is a noop in web mode. } // Unused in super-source; only defined to avoid compiler warnings public static void setForceCheckCompleteHtml(boolean check) { } static void setForceCheckCompleteHtmlFromProperty() { } }
/** * Vends out implementation of JsonFactory. */ @GwtScriptOnly public class Json { private static final JsonFactory FACTORY = new JsJsonFactory(); public static JsonArray createArray() { return FACTORY.createArray(); } public static JsonObject createObject() { return FACTORY.createObject(); } public static <T> T parse(String jsonString) { return FACTORY.parse(jsonString); } }
/** * Supersource (webonly) version of SafeHtmlHostedModeUtils. */ @GwtScriptOnly public class SafeHtmlHostedModeUtils { // Unused in super-source; only defined to avoid compiler warnings public static final String FORCE_CHECK_COMPLETE_HTML = null; public static void maybeCheckCompleteHtml(String html) { // This check is a noop in web mode. } // Unused in super-source; only defined to avoid compiler warnings public static void setForceCheckCompleteHtml(boolean check) { } static void setForceCheckCompleteHtmlFromProperty() { } }