Package js.lang

Examples of js.lang.NativeFunction.apply()


        public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
            // from user value
            NativeFunction function = object.getPropertyAs(NativeFunction.class, ((JSMethod) (Object) method).nameJS);

            if (function != null) {
                Object value = function.apply(null);
                Class type = method.getReturnType();

                if (type.isAnnotation()) {
                    return Proxy.newProxyInstance(null, new Class[] {type}, new AnnotationProxy(type, value));
                } else if (type.isArray() && type.getComponentType().isAnnotation()) {
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.