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

elemental2.dom.Console Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2018 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 elemental2.dom;

import elemental2.core.JsObject;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Console {
  @JsMethod(name = "assert")
  public native void assert_(Object condition, Object... var_data);

  public native void clear();

  public native void count();

  public native void count(String label);

  public native void countReset();

  public native void countReset(String label);

  public native void debug(Object... var_data);

  public native void dir(Object item);

  public native void dirxml(Object... var_data);

  public native void error(Object... var_data);

  public native void group(Object... var_data);

  public native void groupCollapsed(Object... var_data);

  public native void groupEnd();

  public native void info(Object... var_data);

  public native void log(Object... var_data);

  public native void table(JsObject tabularData, Object properties);

  public native void table(JsObject tabularData);

  @JsOverlay
  public final void table(Object tabularData, Object properties) {
    table(Js.uncheckedCast(tabularData), properties);
  }

  @JsOverlay
  public final void table(Object tabularData) {
    table(Js.uncheckedCast(tabularData));
  }

  public native void time(String label);

  public native void timeEnd(String label);

  public native void timeLog(String label, Object... data);

  public native void trace(Object... var_data);

  public native void warn(Object... var_data);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy