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 java.lang.invoke;
27
28 /**
29 * A method handle whose behavior is determined only by its LambdaForm.
30 * @author jrose
31 */
32 final class SimpleMethodHandle extends MethodHandle {
33 private SimpleMethodHandle(MethodType type, LambdaForm form) {
34 super(type, form);
35 }
36
37 /*non-public*/ static SimpleMethodHandle make(MethodType type, LambdaForm form) {
38 return new SimpleMethodHandle(type, form);
39 }
40 }
|
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 java.lang.invoke;
27
28 /**
29 * A method handle whose behavior is determined only by its LambdaForm.
30 * @author jrose
31 */
32 final class SimpleMethodHandle extends MethodHandle {
33 private SimpleMethodHandle(MethodType type, LambdaForm form) {
34 super(type, form);
35 }
36
37 /*non-public*/ static SimpleMethodHandle make(MethodType type, LambdaForm form) {
38 return new SimpleMethodHandle(type, form);
39 }
40
41 @Override
42 /*non-public*/ SimpleMethodHandle copyWith(MethodType mt, LambdaForm lf) {
43 return make(mt, lf);
44 }
45 }
|