JML

org.multijava.dis
Class Main

java.lang.Object
  extended byorg.multijava.dis.Main
All Implemented Interfaces:
Constants
Direct Known Subclasses:
Main

public class Main
extends Object
implements Constants

This class is the entry point for the KOPI disassembler.


Field Summary
private  String[] args
           
protected  DisOptions options
           
 
Fields inherited from interface org.multijava.dis.Constants
OPT_NO_CODE, OPT_SHOW_STACK, OPT_SORT_MEMBERS, OPT_STDOUT
 
Constructor Summary
protected Main(String[] args)
          Only main and subclasses can construct Main
 
Method Summary
static boolean compile(String[] args)
          This static method is inserted simply to facilitate testing.
protected  boolean disasm()
          Disassembles the files specified by the instantiation arguments
protected  void disassembleClass(String fileName)
          Reads, and disassembles a class file
static void main(String[] args)
          Entry point to the assembler
protected  boolean parseArguments(String[] args)
           
static boolean run(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

private String[] args

options

protected DisOptions options
Constructor Detail

Main

protected Main(String[] args)
Only main and subclasses can construct Main

Method Detail

disasm

protected boolean disasm()
Disassembles the files specified by the instantiation arguments

Returns:
true iff disassembly succeeded

disassembleClass

protected void disassembleClass(String fileName)
                         throws UnpositionedError
Reads, and disassembles a class file

Throws:
UnpositionedError - an error occurred

main

public static void main(String[] args)
Entry point to the assembler


compile

public static boolean compile(String[] args)
This static method is inserted simply to facilitate testing.


run

public static boolean run(String[] args)

parseArguments

protected boolean parseArguments(String[] args)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.