All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.core.Global Maven / Gradle / Ivy

There is a newer version: 2.27
Show newest version
package elemental2.core;

import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, name = "window", namespace = JsPackage.GLOBAL)
public class Global {
  @JsOverlay public static final double Infinity = Global__Constants.Infinity;
  public static JSONType JSON;
  @JsOverlay public static final double NaN = Global__Constants.NaN;
  public static Arguments arguments;
  @JsOverlay public static final Object undefined = Global__Constants.undefined;

  public static native String decodeURI(String uri);

  public static native String decodeURIComponent(String uri);

  public static native String encodeURI(String uri);

  public static native String encodeURIComponent(String uri);

  public static native String escape(String str);

  public static native Object eval(String code);

  public static native boolean isFinite(Object num);

  public static native boolean isNaN(Object num);

  public static native double parseFloat(Object num);

  public static native int parseInt(Object num, int base);

  public static native String unescape(String str);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy