/* * This file is part of the Jikes RVM project (http://jikesrvm.org). * * This file is licensed to You under the Common Public License (CPL); * You may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.opensource.org/licenses/cpl1.0.php * * See the COPYRIGHT.txt file distributed with this work for information * regarding copyright ownership. */ package java.lang; import java.security.ProtectionDomain; import java.lang.instrument.Instrumentation; import org.jikesrvm.classloader.VM_Type; import org.vmmagic.pragma.*; import org.jikesrvm.VM; // for VerifyAssertions and _assert() import org.jikesrvm.scheduler.VM_Thread; /** * Library support interface of Jikes RVM */ public class JikesRVMSupport { public static void initializeInstrumentation(Instrumentation instrumenter) { // FIXME: Modified for Null } public static Class<?>[] getAllLoadedClasses() { // FIXME: Modified for Null return null; } public static Class<?>[] getInitiatedClasses(ClassLoader classLoader) { // FIXME: Modified for Null return null; } public static Class<?> createClass(VM_Type type) { return Class.create(type); } public static Class<?> createClass(VM_Type type, ProtectionDomain pd) { Class<?> c = Class.create(type); setClassProtectionDomain(c, pd); return c; } public static VM_Type getTypeForClass(Class<?> c) { return c.type; } public static void setClassProtectionDomain(Class<?> c, ProtectionDomain pd) { c.pd = pd; } /*** * String stuff * */ @Uninterruptible public static char[] getBackingCharArray(String str) { // FIXME: Modified for Null return null; } @Uninterruptible public static int getStringLength(String str) { // FIXME: Modified for Null return 0; } @Uninterruptible public static int getStringOffset(String str) { // FIXME: Modified for Null return 0; } /*** * Thread stuff * */ public static Thread createThread(VM_Thread vmdata, String myName) { if (VM.VerifyAssertions) VM._assert(VM.runningVM); // FIXME: Modified for Null return null; } public static VM_Thread getThread(Thread thread) { // FIXME: Modified for Null return null; } public static void threadDied(Thread thread) { // FIXME: Modified for Null } public static Throwable getStillBorn(Thread thread) { // FIXME: Modified for Null return null; } public static void setStillBorn(Thread thread, Throwable stillborn) { // FIXME: Modified for Null } /*** * Enum stuff */ @Uninterruptible public static int getEnumOrdinal(Enum<?> e) { // FIXME: Modified for Null return 0; } @Uninterruptible public static String getEnumName(Enum<?> e) { // FIXME: Modified for Null return ""; } }