com.cmpware.tools
Class AutoTool

java.lang.Object
  extended by com.cmpware.tools.AutoTool

public class AutoTool
extends java.lang.Object

This class is the main() routine for the Automodel assembler / disassembler. It is invoked with the command: java -jar Cmpware.jar 'AutoModel class' -asm 'infile' 'outfile' or java -jar Cmpware.jar 'AutoModel class' -dasm 'infile' Currently only assembly and disassembly is supported. Other tools may be added to this interface, preserving the single executable entry point limitation in JAR files.

Copyright (c) 2007 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Constructor Summary
AutoTool()
           
 
Method Summary
static AutoModel get(java.lang.String processorName)
          This static method is used to return a newly allocated AutoModel object from the AutoModel class name string.
static void main(java.lang.String[] args)
          This is the main program which is used to assemble / disassemble from the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

AutoTool

public AutoTool()
Method Detail

main

public static void main(java.lang.String[] args)
This is the main program which is used to assemble / disassemble from the command line.

Parameters:
args - The command line args. Should be a flag ("-asm" of "-dasm") followed by an input filename and an output filename (three strings).

get

public static AutoModel get(java.lang.String processorName)
                     throws ProcessorException
This static method is used to return a newly allocated AutoModel object from the AutoModel class name string.

Parameters:
processorName - The name of the processor. This is the class name of the Link class file under com.cmpware.cmp.models.
Returns:
This method returns a newly created Processor object from the processor name string.
Throws:
ProcessorException - if any problems we encountered allocating the new Processorobject.