Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java')
-rw-r--r--JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java
new file mode 100644
index 0000000000..8a1fdd030e
--- /dev/null
+++ b/JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java
@@ -0,0 +1,38 @@
+package java.lang.invoke;
+/*******************************************************************************
+ * Copyright (c) 2011 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+public abstract class MethodHandle {
+ @Target(METHOD)
+ @Retention(RUNTIME)
+ @interface PolymorphicSignature {
+ }
+
+ @PolymorphicSignature
+ public final native Object invoke(Object... args) throws Throwable;
+
+ @PolymorphicSignature
+ public final native Object invokeExact(Object... args) throws Throwable;
+
+ public native Object invokeWithArguments(Object... arguments)
+ throws Throwable;
+
+ public native boolean isVarargsCollector();
+
+ public native MethodHandle asType(MethodType newType);
+} \ No newline at end of file

Back to the top