Package org.jnode.vm.facade

Examples of org.jnode.vm.facade.VmHeapManager.newInstance()


     */
    public static Object newInstance(VmMethod constructor, Object[] args)
        throws InstantiationException, IllegalAccessException,
        InvocationTargetException {
        final VmHeapManager hm = VmUtils.getVm().getHeapManager();
        final Object obj = hm.newInstance(constructor.getDeclaringClass());
        invoke(constructor, obj, args);
        return obj;
    }

    /**
 
View Full Code Here


     */
    public static Object newInstance(VmMethod constructor)
        throws InstantiationException, IllegalAccessException,
        InvocationTargetException {
        final VmHeapManager hm = VmUtils.getVm().getHeapManager();
        final Object obj = hm.newInstance(constructor.getDeclaringClass());
        Unsafe.pushObject(obj);
        Unsafe.invokeVoid(constructor);
        return obj;
    }

View Full Code Here

        if (hm == null) {
            heapManager = hm = VmUtils.getVm().getHeapManager();
        }
        final Object result;
        if (size < 0) {
            result = hm.newInstance(vmClass);
        } else {
            result = hm.newInstance(vmClass, size);
        }
        return result;
    }
View Full Code Here

        }
        final Object result;
        if (size < 0) {
            result = hm.newInstance(vmClass);
        } else {
            result = hm.newInstance(vmClass, size);
        }
        return result;
    }

    /**
 
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.