1 ; -*- Mode: Jasmin; indent-tabs-mode: t; tab-width: 4 -*-
2 ; ---------------------------------------------------------------------------
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 ; ---------------------------------------------------------------------------
9 ; Invocation of an interface method in the usual way
11 .
class public lang
/interfaces
/TestInvokeInterfaceMethod
12 .
super net
/multiphasicapps
/tac
/TestInteger
14 .
method public <init
>()V
16 invokenonvirtual net
/multiphasicapps
/tac
/TestInteger
/<init
>()V
20 .
method public test
()I
22 ; Allocate and initialize an implementation
23 new lang
/interfaces
/ImplementsA
25 invokespecial lang
/interfaces
/ImplementsA
/<init
>()V
27 invokeinterface lang
/interfaces
/InterfaceA
/methodA
()I
1