jsinterop.base.Js Maven / Gradle / Ivy
/*
* Copyright 2016 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 jsinterop.base;
import static jsinterop.base.InternalPreconditions.checkType;
import javaemul.internal.annotations.DoNotAutobox;
import javaemul.internal.annotations.HasNoSideEffects;
import javaemul.internal.annotations.UncheckedCast;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
/**
* Utilities to provide access to JavaScript language constructs that are not available in pure
* Java.
*
* Note that this class avoids providing replacements for stuff that is already available via a
* pure Java or Elemental and enforce safe (runtime-checked) coding practices.
*/
public final class Js {
@JsProperty(namespace = "", name = "undefined")
public static native Object undefined();
@JsProperty(namespace = "", name = "arguments")
public static native JsArrayLike