基本上我需要做的就是这个
FileChannel.MapMode.READ_ONLY
Run Code Online (Sandbox Code Playgroud)
我试着做的很明显
(.. FileChannel MapMode READ_ONLY)
Run Code Online (Sandbox Code Playgroud)
但最终会抛出异常
java.lang.NoSuchFieldException: MapMode
Run Code Online (Sandbox Code Playgroud)
甚至/在interop文档中为访问静态字段指定的表示法也会产生相同的异常
(. (FileChannel/MapMode) READ_ONLY)
Run Code Online (Sandbox Code Playgroud) 我一直在写一个clojure解析器,并遇到以下语法:
(defn key
"Returns the key of the map entry."
{:added "1.0"
:static true}
[^java.util.Map$Entry e]
(. e (getKey)))
Run Code Online (Sandbox Code Playgroud)
那'''在这里意味着什么?元数据之外的那种语法是否有用处?