1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // Multi-Phasic Applications: SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.mle
;
12 import cc
.squirreljme
.jvm
.mle
.brackets
.TypeBracket
;
13 import cc
.squirreljme
.jvm
.mle
.exceptions
.MLECallError
;
14 import cc
.squirreljme
.runtime
.cldc
.annotation
.Api
;
15 import cc
.squirreljme
.runtime
.cldc
.annotation
.SquirrelJMEVendorApi
;
16 import org
.jetbrains
.annotations
.NotNull
;
19 * SquirrelJME specific reflection oriented methods.
24 public final class ReflectionShelf
32 private ReflectionShelf()
37 * Invokes the main method of a give type.
39 * @param __type The type to look for the main method in.
40 * @param __args The arguments to the call.
41 * @throws MLECallError If any argument is {@code null}.
42 * @throws Throwable Any exception thrown by the target.
46 public static native void invokeMain(@NotNull TypeBracket __type
,
47 @NotNull String
... __args
)
48 throws MLECallError
, Throwable
;