Examples of assertType()


Examples of org.dynalang.dynalink.linker.GuardedInvocation.assertType()

        final MethodHandle identity = IDENTITY_CONVERSION.asType(type);
        MethodHandle last = identity;
        for(int i = factories.length; i-- > 0;) {
            final GuardedInvocation next = factories[i].convertToType(sourceType, targetType);
            if(next != null) {
                next.assertType(type);
                last = next.compose(last);
            }
        }
        return last == identity ? IDENTITY_CONVERSION : last;
    }
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.