Constructor and Description |
---|
JavaScript() |
Modifier and Type | Method and Description |
---|---|
org.graalvm.polyglot.Value |
bindings() |
void |
destroy() |
<T> T |
evaluate(String name,
String code) |
<T> T |
evaluate(URL url) |
<T> T |
get(String key) |
void |
init() |
<T> T |
invoke(boolean sync,
Object jsThis,
Object function,
Object... arguments) |
void |
put(String key,
Object value) |
void |
run() |
ScheduledFuture<?> |
schedule(Object jsThis,
Object function,
long delay)
Invoked from
browser.js . |
ScheduledFuture<?> |
scheduleWithFixedDelay(Object jsThis,
Object function,
long initialDelay,
long delay)
Invoked from
browser.js . |
public org.graalvm.polyglot.Value bindings()
public void init()
public <T> T evaluate(URL url)
public <T> T get(String key)
public ScheduledFuture<?> schedule(Object jsThis, Object function, long delay)
browser.js
.jsThis
- the JavaScript this
referencefunction
- the function to invoke after the given delaydelay
- the delay after which the function is invoked, in millisecondspublic ScheduledFuture<?> scheduleWithFixedDelay(Object jsThis, Object function, long initialDelay, long delay)
browser.js
.jsThis
- the JavaScript this
referencefunction
- the function to invoke after the given delayinitialDelay
- the delay of the first execution, in millisecondsdelay
- the delay after which the function is invoked, in millisecondsCopyright © 2008–2023 The CometD Project. All rights reserved.