Interface ExternalAccess

All Known Implementing Classes:
JavaObject, JavaType

public interface ExternalAccess
all operations work in static or instance mode depending on context
  • Method Details

    • construct

      Object construct(Object[] args)
    • getProperty

      Object getProperty(String name)
    • getPropertyOrNotFound

      default Object getPropertyOrNotFound(String name)
      getProperty(java.lang.String) for a caller that treats "no such property" as undefined rather 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

      void setProperty(String name, Object value)
    • invokeMethod

      Object invokeMethod(String name, Object[] args)
    • getMethod

      default JavaInvokable getMethod(String name)
    • getJavaValue

      Object getJavaValue()