Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/doc/library/javascript/clientreference/javpkg.htm
Дата изменения: Thu Oct 7 13:13:36 1999 Дата индексирования: Sat Dec 22 14:24:03 2007 Кодировка: Поисковые слова: moon |
Packages
keyword:
Packages.JavaPackagewhere JavaPackage is the name of the object's Java package. If the package is in the
java
, netscape
, or sun
packages, the Packages
keyword is optional.
netscape
package contains the package netscape.javascript
; the netscape.javascript
package contains the classes JSObject
and JSException.
In JavaScript, a JavaPackage
is a reference to a Java package. For example, a reference to netscape
is a JavaPackage
. netscape.javascript
is both a JavaPackage
and a property of the netscape
JavaPackage
.
A JavaClass
object is a reference to one of the classes in a package, such as netscape.javascript.JSObject
. The JavaPackage
and JavaClass
hierarchy reflect the Java package and class hierarchy.
Although the packages and classes contained in a JavaPackage
are its properties, you cannot use a for...in
statement to enumerate them as you can enumerate the properties of other objects.
JavaPackage
are the JavaClass
objects and any other JavaPackage
objects it contains.
redwood
package to contain various Java classes that it implements. The following code creates the JavaPackage
red
:
var red = Packages.redwood
JavaArray
, JavaClass
, JavaObject
, Packages
Last Updated: 05/28/99 11:59:42