Package com.headius.invokebinder

Examples of com.headius.invokebinder.Binder.cast()


                    }


                    if (nc.isStatic()) {
                        if (b.type().parameterCount() == nc.getNativeSignature().length) {
                            mh = b
                                    .cast(nc.getNativeReturn(), nc.getNativeSignature())
                                    .invokeStaticQuiet(MethodHandles.lookup(), nc.getNativeTarget(), nc.getNativeName());
//                            System.out.println(mh);
                        }
                    } else {
View Full Code Here


                    .permute(2)
                    .filterReturn(filter);
           
            int offset = ((FieldVariableAccessor)accessor).getOffset();
            Class objCls = InvokeDynamicSupport.REIFIED_OBJECT_CLASSES[offset];
            nativeTarget = b
                    .cast(Object.class, objCls)
                    .getFieldQuiet(lookup(), "var" + offset);
        } else {
            nativeTarget = Binder
                    .from(site.type())
View Full Code Here

                    .permute(2, 3)
                    .filterReturn(filter);
           
            int offset = ((FieldVariableAccessor)accessor).getOffset();
            Class objCls = InvokeDynamicSupport.REIFIED_OBJECT_CLASSES[offset];
            nativeTarget = b
                    .cast(void.class, objCls, Object.class)
                    .invokeStaticQuiet(lookup(), objCls, "setVariableChecked");
        } else {
            nativeTarget = Binder
                    .from(site.type())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.