blob: 789476586da499920091d96d0c8a09a751a33f13 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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;
import java.lang.invoke.MethodType;
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);
}
|