Skip to content

Commit

Permalink
array class syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Dec 14, 2023
1 parent 0732c24 commit ad1cc54
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/reference/java_interop.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ toc::[]
== Class access

[%hardbreaks]
**Classname** (imported or fully-qualified)
**Classname$NestedClassName** (inner classes)
**Classname\*** (array classes, `*` count indicates dimension)
**Classname[$InnerClass]([*])?**

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 imported in the namespace, it may be used without qualification. Array classes end in 1 or more `\*`'s. Array classes may also have primitive components, e.g. `long\*`.
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 `\*`s, one per dimension. Array classes only may also have a primitive component, e.g. `long\*`.

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

Expand Down

0 comments on commit ad1cc54

Please sign in to comment.