Interface ScriptOrFn<T extends ScriptOrFn<T>>

All Known Implementing Classes:
JSFunction, JSScript

public interface ScriptOrFn<T extends ScriptOrFn<T>>
Super type for Javascript scripts and functions. The type variable is threaded through the whole implementation of JSScript, JSFunction, JSDescriptor, etc. to avoid explicit casting in both Java and generated bytecode.
  • Method Details

    • getHomeObject

      default Scriptable getHomeObject()
    • getDescriptor

      default JSDescriptor<T> getDescriptor()
    • getDeclarationScope

      default VarScope getDeclarationScope()