org.hecl.midp20
Class MidletCmd

java.lang.Object
  extended by org.hecl.Operator
      extended by org.hecl.midp20.MidletCmd
All Implemented Interfaces:
Command

public class MidletCmd
extends Operator


Field Summary
static int CHECKPERMISSIONS
           
protected static int CONTENTTYPES
           
static int EXIT
           
protected static int FLASHBACKLIGHT
           
static int GETPROP
           
static int HASPROP
           
static int PAUSE
           
static int PLATFORMREQUEST
           
protected static int PLAYTONE
           
protected static int PROTOCOLS
           
static int RESASSTRING
           
static int RESUME
           
protected static javax.microedition.midlet.MIDlet themidlet
           
protected static int VIBRATE
           
 
Fields inherited from class org.hecl.Operator
cmdcode, maxargs, minargs
 
Constructor Summary
protected MidletCmd(int cmdcode, int minargs, int maxargs)
           
 
Method Summary
static javax.microedition.lcdui.Display getDisplay()
           
static void load(Interp ip, javax.microedition.midlet.MIDlet m)
           
static javax.microedition.midlet.MIDlet midlet()
           
 Thing operate(int cmd, Interp interp, Thing[] argv)
          The operate method dispatches to the actual code.
static java.util.Vector tov(java.lang.String[] s)
           
static void unload(Interp ip)
           
 
Methods inherited from class org.hecl.Operator
cmdCode, load, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXIT

public static final int EXIT
See Also:
Constant Field Values

PAUSE

public static final int PAUSE
See Also:
Constant Field Values

RESUME

public static final int RESUME
See Also:
Constant Field Values

PLATFORMREQUEST

public static final int PLATFORMREQUEST
See Also:
Constant Field Values

CHECKPERMISSIONS

public static final int CHECKPERMISSIONS
See Also:
Constant Field Values

GETPROP

public static final int GETPROP
See Also:
Constant Field Values

HASPROP

public static final int HASPROP
See Also:
Constant Field Values

RESASSTRING

public static final int RESASSTRING
See Also:
Constant Field Values

PLAYTONE

protected static final int PLAYTONE
See Also:
Constant Field Values

CONTENTTYPES

protected static final int CONTENTTYPES
See Also:
Constant Field Values

PROTOCOLS

protected static final int PROTOCOLS
See Also:
Constant Field Values

VIBRATE

protected static final int VIBRATE
See Also:
Constant Field Values

FLASHBACKLIGHT

protected static final int FLASHBACKLIGHT
See Also:
Constant Field Values

themidlet

protected static javax.microedition.midlet.MIDlet themidlet
Constructor Detail

MidletCmd

protected MidletCmd(int cmdcode,
                    int minargs,
                    int maxargs)
Method Detail

midlet

public static javax.microedition.midlet.MIDlet midlet()

getDisplay

public static javax.microedition.lcdui.Display getDisplay()

operate

public Thing operate(int cmd,
                     Interp interp,
                     Thing[] argv)
              throws HeclException
Description copied from class: Operator
The operate method dispatches to the actual code.

Specified by:
operate in class Operator
Parameters:
cmd - an int value
interp - an Interp value
argv - a Thing[] value
Returns:
a Thing value, or null when no value has been
Throws:
HeclException - if an error occurs

tov

public static java.util.Vector tov(java.lang.String[] s)

load

public static void load(Interp ip,
                        javax.microedition.midlet.MIDlet m)
                 throws HeclException
Throws:
HeclException

unload

public static void unload(Interp ip)
                   throws HeclException
Throws:
HeclException