elemental2.core.ObjectPropertyDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elemental2-core Show documentation
Show all versions of elemental2-core Show documentation
Thin Java abstractions for the standard built-in objects for Javascript.
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