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

com.whl.quickjs.wrapper.JSObject Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package com.whl.quickjs.wrapper;

public interface JSObject {

    void setStackTrace(Throwable trace);
    Throwable getStackTrace();

    void setProperty(String name, String value);
    void setProperty(String name, int value);
    void setProperty(String name, long value);
    void setProperty(String name, JSObject value);
    void setProperty(String name, boolean value);
    void setProperty(String name, double value);
    void setProperty(String name, JSCallFunction value);
    void setProperty(String name, Class clazz);
    long getPointer();
    QuickJSContext getContext();
    Object getProperty(String name);
    @Deprecated
    String getStringProperty(String name);
    String getString(String name);
    @Deprecated
    Integer getIntProperty(String name);
    Integer getInteger(String name);
    @Deprecated
    Boolean getBooleanProperty(String name);
    Boolean getBoolean(String name);
    @Deprecated
    Double getDoubleProperty(String name);
    Double getDouble(String name);
    Long getLong(String name);
    @Deprecated
    JSObject getJSObjectProperty(String name);
    JSObject getJSObject(String name);
    @Deprecated
    JSFunction getJSFunctionProperty(String name);
    JSFunction getJSFunction(String name);
    @Deprecated
    JSArray getJSArrayProperty(String name);
    JSArray getJSArray(String name);
    @Deprecated
    JSArray getOwnPropertyNames();
    JSArray getNames();
    String stringify();
    boolean isAlive();
    void release();
    void hold();
    int getRefCount();
    boolean isRefCountZero();
    /**
     * 引用计数减一,目前仅将对象返回到 JavaScript 中的场景中使用。
     */
    void decrementRefCount();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy