Remove Assembly.
[SquirrelJME.git] / emulators / springcoat-vm / src / main / java / cc / squirreljme / vm / springcoat / UIDisplayCallbackAdapter.java
blob2be784dea3e13d20f7f114a42a1b8a4e7a7b458a
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.vm.springcoat;
12 import cc.squirreljme.jvm.mle.brackets.UIDisplayBracket;
13 import cc.squirreljme.jvm.mle.callbacks.UIDisplayCallback;
14 import net.multiphasicapps.classfile.ClassName;
15 import net.multiphasicapps.classfile.MethodNameAndType;
17 /**
18 * Calls into SpringCoat and performs the callback.
20 * @since 2020/10/03
22 public class UIDisplayCallbackAdapter
23 extends UIDrawableCallbackAdapter
24 implements UIDisplayCallback
26 /** The class used to call back. */
27 private static final ClassName CALLBACK_CLASS =
28 new ClassName(
29 "cc/squirreljme/jvm/mle/callbacks/UIDisplayCallback");
31 /**
32 * Initializes the callback.
34 * @param __machine The machine to refer to.
35 * @param __callback The callback to forward to.
36 * @throws NullPointerException On null arguments.
37 * @since 2020/10/03
39 public UIDisplayCallbackAdapter(SpringMachine __machine,
40 SpringObject __callback)
41 throws NullPointerException
43 super(UIDisplayCallbackAdapter.CALLBACK_CLASS, __machine, __callback);
46 /**
47 * {@inheritDoc}
48 * @since 2020/10/03
50 @Override
51 public void later(UIDisplayBracket __display, int __serialId)
53 this.invokeCallback(
54 MethodNameAndType.ofArguments("later", null,
55 "Lcc/squirreljme/jvm/mle/brackets/UIDisplayBracket;",
56 "I"), this.mapDrawable(__display), __serialId);