Examples of VmStaticsIterator


Examples of org.jnode.vm.classmgr.VmStaticsIterator

    @NoInline
    static Iterator getAllLoadedClasses() {
        if(debug())
            System.out.println("NativeVMVirtualMachine.getAllLoadedClasses()");
        return new Iterator() {
            private VmStaticsIterator iter = new VmStaticsIterator(VmUtils.getVm().getSharedStatics());
            private Iterator<VmIsolatedStatics> isolated = VmIsolate.staticsIterator();

            public boolean hasNext() {
                if (iter.hasNext())
                    return true;
                else {
                    while (isolated.hasNext()) {
                        iter = new VmStaticsIterator(isolated.next());
                        if (iter.hasNext())
                            return true;
                    }
                }
                return false;
            }

            public Object next() {
                return iter.next().asClass();
            }

            public void remove() {
                throw new UnsupportedOperationException();
            }
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.