Make Wrapper an API class.

git-svn-id: svn://10.0.0.236/trunk@62546 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
norris%netscape.com 2000-03-10 20:55:36 +00:00
parent 2461391278
commit e28c618bf5
2 changed files with 26 additions and 6 deletions

View File

@ -15,7 +15,7 @@
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
@ -33,13 +33,23 @@
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* Objects that can wrap other values for reflection in the JS environment.
* Objects that can wrap other values for reflection in the JS environment
* will implement Wrapper.
*
* Wrapper defines a single method that can be called to unwrap the object.
*/
public interface Wrapper {
public Object unwrap();
/**
* Unwrap the object by returning the wrapped value.
*
* @return a wrapped value
*/
public Object unwrap();
}

View File

@ -15,7 +15,7 @@
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
@ -33,13 +33,23 @@
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* Objects that can wrap other values for reflection in the JS environment.
* Objects that can wrap other values for reflection in the JS environment
* will implement Wrapper.
*
* Wrapper defines a single method that can be called to unwrap the object.
*/
public interface Wrapper {
public Object unwrap();
/**
* Unwrap the object by returning the wrapped value.
*
* @return a wrapped value
*/
public Object unwrap();
}