File: AnInterface.j

package info (click to toggle)
jasmin-sable 1.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,464 kB
  • ctags: 1,903
  • sloc: java: 12,496; makefile: 126; csh: 93; sh: 93
file content (31 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; --- Copyright Jonathan Meyer 1996. All rights reserved. -----------------
; File:      jasmin/examples/AnInterface.j
; Author:    Jonathan Meyer, 1 Oct 1996
; Purpose:   A Java interface written in Jasmin
; -------------------------------------------------------------------------

;
; This file shows how to use Jasmin to define an interface. It
; is like the Java code:
; 
; interface public examples.AnInterface {
;     void foo();
; }
;
; See examples.Implementor for an example of a class that implements
; this interface.
;

.interface public examples/AnInterface
.super java/lang/Object     

; (Interfaces should either inherit from Object, or from 
;  another interface.)

;
; declare abstract method foo() - note that the method body is empty.
;
.method abstract foo()V
.end method