Package io.karatelabs.js
Interface ExternalAccess
- All Known Implementing Classes:
JavaObject,JavaType
public interface ExternalAccess
all operations work in static or instance mode depending on context
-
Method Summary
Modifier and TypeMethodDescriptiondefault JavaInvokablegetProperty(String name) default ObjectgetPropertyOrNotFound(String name) getProperty(java.lang.String)for a caller that treats "no such property" asundefinedrather than an error.invokeMethod(String name, Object[] args) voidsetProperty(String name, Object value)
-
Method Details
-
construct
-
getProperty
-
getPropertyOrNotFound
getProperty(java.lang.String)for a caller that treats "no such property" asundefinedrather than an error. The engine's own implementation answers with an internal not-found marker instead of throwing; the default below keeps every other implementation working unchanged, since the caller catches either way. Overriding it is an optimisation available inside the engine, not something an external implementor needs to do. -
setProperty
-
invokeMethod
-
getMethod
-
getJavaValue
Object getJavaValue()
-