mjc

org.multijava.util.backend
Class Main

java.lang.Object
  extended byorg.multijava.util.backend.Main

public class Main
extends Object

This class is the entry point for the KOPI disassembler.


Field Summary
protected  BackendOptions options
           
 
Constructor Summary
private Main(String[] args)
          Only main can construct Main
 
Method Summary
static void main(String[] args)
          Entry point to the assembler
private  void optimizeClass(String fileName)
          Reads, optimizes and writes a class file
static void optimizeClass(ClassInfo info, BackendOptions options)
          Reads, optimizes and writes a class file
private static void optimizeMethod(MethodInfo method, BackendOptions options)
           
private  boolean parseArguments(String[] args)
           
private  ClassInfo readClassFile(String fileName)
           
private  void writeClassFile(ClassInfo info, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

protected BackendOptions options
Constructor Detail

Main

private Main(String[] args)
Only main can construct Main

Method Detail

optimizeClass

private void optimizeClass(String fileName)
                    throws UnpositionedError
Reads, optimizes and writes a class file

Throws:
UnpositionedError - an error occurred

optimizeClass

public static void optimizeClass(ClassInfo info,
                                 BackendOptions options)
                          throws UnpositionedError
Reads, optimizes and writes a class file

Throws:
UnpositionedError - an error occurred

optimizeMethod

private static void optimizeMethod(MethodInfo method,
                                   BackendOptions options)

readClassFile

private ClassInfo readClassFile(String fileName)
                         throws UnpositionedError
Throws:
UnpositionedError

writeClassFile

private void writeClassFile(ClassInfo info,
                            String fileName)
                     throws UnpositionedError
Throws:
UnpositionedError

main

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


parseArguments

private boolean parseArguments(String[] args)

mjc

mjc is Copyright (C) 2000-2004 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. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.