19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package jdk.nashorn.internal.runtime.linker;
27
28 import java.util.Objects;
29
30 /**
31 * Represents a an adapter for invoking superclass methods on an adapter instance generated by
32 * {@code JavaAdapterBytecodeGenerator}. Note that objects of this class are just wrappers around the adapter instances,
33 * without any behavior. All the behavior is defined in the {@code JavaSuperAdapterLinker}.
34 */
35 class JavaSuperAdapter {
36 private final Object adapter;
37
38 JavaSuperAdapter(final Object adapter) {
39 Objects.requireNonNull(adapter);
40 this.adapter = adapter;
41 }
42
43 public Object getAdapter() {
44 return adapter;
45 }
46 }
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package jdk.nashorn.internal.runtime.linker;
27
28 import java.util.Objects;
29
30 /**
31 * Represents a an adapter for invoking superclass methods on an adapter instance generated by
32 * {@code JavaAdapterBytecodeGenerator}. Note that objects of this class are just wrappers around the adapter instances,
33 * without any behavior. All the behavior is defined in the {@code JavaSuperAdapterLinker}.
34 */
35 class JavaSuperAdapter {
36 private final Object adapter;
37
38 JavaSuperAdapter(final Object adapter) {
39 this.adapter = Objects.requireNonNull(adapter);
40 }
41
42 public Object getAdapter() {
43 return adapter;
44 }
45 }
|