| 1 | /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
| 2 | * |
| 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 6 | |
| 7 | // API class |
| 8 | |
| 9 | package org.mozilla.javascript; |
| 10 | |
| 11 | /** |
| 12 | * Objects that can wrap other values for reflection in the JS environment |
| 13 | * will implement Wrapper. |
| 14 | * |
| 15 | * Wrapper defines a single method that can be called to unwrap the object. |
| 16 | */ |
| 17 | |
| 18 | public interface Wrapper { |
| 19 | |
| 20 | /** |
| 21 | * Unwrap the object by returning the wrapped value. |
| 22 | * |
| 23 | * @return a wrapped value |
| 24 | */ |
| 25 | public Object unwrap(); |
| 26 | } |