Skip to content

Commit 6672b55

Browse files
committed
formatting
1 parent 3f29f44 commit 6672b55

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

content/reference/java_interop.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ toc::[]
1818
[%hardbreaks]
1919
**Classname[$InnerClass][pass:[*]]**
2020

21-
Symbols representing class names are resolved to the Class instance. Inner or nested classes are separated from their outer class with a `$`. Fully-qualified class names are always valid. If a class is import`ed in the namespace, it may be used without qualification. Array classes end in 1 or more pass:[*]'s, one per dimension. Array classes only may also have a primitive component, e.g. `pass:[long*]`.
21+
Symbols representing class names are resolved to the Class instance. Inner or nested classes are separated from their outer class with a `$`. Fully-qualified class names are always valid. If a class is import`ed in the namespace, it may be used without qualification.
22+
23+
Since 1.12, class symbols may end in one or more pass:[*]s to refer to an array of the class. The number of pass:[*]s indicates the array dimension. Array classes may also use a primitive component, e.g. `pass:[long*]`.
2224

2325
All classes in java.lang are automatically imported to every namespace.
2426

@@ -57,7 +59,11 @@ Math/PI
5759
-> 3.141592653589793
5860
----
5961

60-
The preferred idiomatic forms for accessing field or method members are given above. The instance member form works for both fields and methods. The instanceField form is preferred for fields and required if both a field and a 0-argument method of the same name exist. They all expand into calls to the dot operator (described below) at macroexpansion time. The expansions are as follows:
62+
The preferred idiomatic forms for accessing field or method members are given above. The instance member form works for both fields and methods. The instanceField form is preferred for fields and required if both a field and a 0-argument method of the same name exist.
63+
64+
Since Clojure 1.12, instance method symbols may be qualified with the Class name.
65+
66+
All idiomatic forms expand into calls to the dot operator (described below) at macroexpansion time. The expansions are as follows:
6167

6268
[source,clojure]
6369
----

0 commit comments

Comments
 (0)