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

elemental2.core.ObjectPropertyDescriptor Maven / Gradle / Ivy

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

import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
import jsinterop.base.JsPropertyMap;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface ObjectPropertyDescriptor {
  @JsFunction
  public interface GetFn {
    Object onInvoke();
  }

  @JsFunction
  public interface SetFn {
    void onInvoke(Object p0);
  }

  @JsOverlay
  static ObjectPropertyDescriptor create() {
    return Js.uncheckedCast(JsPropertyMap.of());
  }

  @JsProperty
  ObjectPropertyDescriptor.GetFn getGet();

  @JsProperty
  ObjectPropertyDescriptor.SetFn getSet();

  @JsProperty
  Object getValue();

  @JsProperty
  boolean isConfigurable();

  @JsProperty
  boolean isEnumerable();

  @JsProperty
  boolean isWritable();

  @JsProperty
  void setConfigurable(boolean configurable);

  @JsProperty
  void setEnumerable(boolean enumerable);

  @JsProperty
  void setGet(ObjectPropertyDescriptor.GetFn get);

  @JsProperty
  void setSet(ObjectPropertyDescriptor.SetFn set);

  @JsProperty
  void setValue(Object value);

  @JsProperty
  void setWritable(boolean writable);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy