PtcRunner.Lisp.Java.Callable (PtcRunner v0.14.0)

Copy Markdown View Source

Native, closed reference to one admitted Java member.

It carries no host function or open member name. Invocation always resolves the stable reference through PtcRunner.Lisp.Java.Dispatch.

Summary

Functions

Invokes a first-class Java reference using its manifest-declared invocation kind.

Types

t()

@type t() :: %PtcRunner.Lisp.Java.Callable{reference_id: atom()}

Functions

invoke(callable, arguments)

@spec invoke(term(), [term()]) :: PtcRunner.Lisp.Java.Dispatch.result()

Invokes a first-class Java reference using its manifest-declared invocation kind.

new(reference_id)

@spec new(atom()) :: {:ok, t()} | :error

valid?(callable)

@spec valid?(term()) :: boolean()