Removal of old and deprecated UIForm code.
[SquirrelJME.git] / modules / cldc-compact / src / main / java / cc / squirreljme / jvm / mle / ReflectionShelf.java
blob228474e6f1fd7eb4b584aac821618545a3cd4a07
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;
18 /**
19 * SquirrelJME specific reflection oriented methods.
21 * @since 2022/09/07
23 @SquirrelJMEVendorApi
24 public final class ReflectionShelf
26 /**
27 * Not used
29 * @since 2022/09/07
31 @SquirrelJMEVendorApi
32 private ReflectionShelf()
36 /**
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.
43 * @since 2022/09/07
45 @SquirrelJMEVendorApi
46 public static native void invokeMain(@NotNull TypeBracket __type,
47 @NotNull String... __args)
48 throws MLECallError, Throwable;