Package org.teavm.platform
Class Platform
java.lang.Object
org.teavm.platform.Platform
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
asJavaClass(PlatformObject obj)
static Object
static <T> PlatformQueue<T>
static Annotation[]
getAnnotations(PlatformClass cls)
static PlatformClass
getArrayItem(PlatformClass cls)
static PlatformClass
static PlatformClass
static Enum<?>[]
static String
getName(PlatformClass cls)
static PlatformObject
getPlatformObject(Object obj)
static String
getSimpleName(PlatformClass cls)
static void
initClass(PlatformClass cls)
static boolean
isAssignable(PlatformClass from, PlatformClass to)
static boolean
isEnum(PlatformClass cls)
static boolean
isInstance(PlatformObject obj, PlatformClass cls)
static boolean
isPrimitive(PlatformClass cls)
static void
killSchedule(int id)
static PlatformClass
lookupClass(String name)
static <T> T
newInstance(PlatformClass cls)
static int
static Object
objectFromResource(StaticFieldResource resource)
static void
postpone(PlatformRunnable runnable)
static int
schedule(PlatformRunnable runnable, int timeout)
static void
startThread(PlatformRunnable runnable)
static PlatformString
stringFromCharCode(int charCode)
-
Method Details
-
getPlatformObject
-
clone
-
isInstance
-
isAssignable
-
asJavaClass
-
nextObjectId
public static int nextObjectId() -
newInstance
-
lookupClass
-
initClass
-
objectFromResource
-
getEnumConstants
-
getAnnotations
-
startThread
-
postpone
-
schedule
-
killSchedule
public static void killSchedule(int id) -
createQueue
-
stringFromCharCode
-
isPrimitive
-
isEnum
-
getArrayItem
-
getName
-
getSimpleName
-
getEnclosingClass
-
getDeclaringClass
-