Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JavaPackage<T>

The notation JavaPackage<"name"> refers to a package from the Java API with the specified name. It is similar to JavaObject, except for referring to a package instead of a class. In Java, a package is a name for a group of closely related classes. It is used like a folder name: the class java.lang.String is found in the package java.lang. The JavaPackage type is used when a package is given a shorter alias to describe the full package name. For example, the common library defines arkham as an alias for the longer package name ca.cgjennings.apps.arkham. In the documentation, the full package name is listed as JavaPackage<"ca.cgjennings.apps.arkham">.

As discussed under JavaObject, you do not use JavaPackage<"..."> in your code. This notation is required to make the system that builds the scripting documentation happy because it doesn't know anything about the Java API. It is rare for regular script code to refer to a package, but you would do so by just using the part in quotes. For example:

importPackage(ca.cgjennings.apps.arkham);

For more information, refer to Packages, importPackage, importClass, and JavaObject.

Type parameters

  • T: string

Hierarchy