(rontolisp) docs
← Java interop

.

(. receiver member args...) (. receiver (method args...))

Calls a member on receiver: with a method symbol, the instance call (. obj m args); with a class as receiver, the static (. Class m args). With no arguments -- (. System nanoTime) -- it is the zero-argument static method when the host class has one, else the field read, like (Class/m). (. obj -field) and (. Class FIELD) read fields. Java's false comes back as false, a boolean answer and a Boolean.FALSE read from a host collection alike, and a value passed as an argument reaches Java as an object Java reads as the oracle's own, which comes back as itself (Deviations has what differs). The receiver decides the path: a string takes the mapped core operation, which runs on every backend; anything else goes to java:call, which calls a string as a String, a number as its box and a character as a Character ((.codePointAt "abc" 0), (.compareTo 1 2)). Classes resolve dotted as written, through :import, or through java.lang. Runs on the interpreter and the JVM only -- the wasm backends reject java:; there a member no value has is the oracle's refusal, so a compile warns only of a call the host alone answers (interop).