net.mtu.eggplant.dbc
Class JonsAssert

java.lang.Object
  extended bynet.mtu.eggplant.dbc.JonsAssert

public final class JonsAssert
extends Object

Class that starts everything off.

Commandline options

Classes can also be instrumented by calling instrument with a Configuration object and a Collection of files.

Version:
$Revision: 1.16 $

Method Summary
static int getExitCode()
          Get the exit code.
static Symtab getSymtab()
          Get the symbol table.
static boolean instrument(Configuration config, Collection files)
          Entry point.
static void main(String[] args)
          Parses the command line then calls instrument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Parses the command line then calls instrument.

Parameters:
args - see commandline options

instrument

public static boolean instrument(Configuration config,
                                 Collection files)
Entry point. Starts up the parser and instruments all files. This is the method to call if one wants to invoke the application from another Java program.

Parameters:
config - the configuration object
files - Collection of files/directories to parse. Directories are parsed recursively.
Returns:
true if everything went ok, false otherwise
PreConditions
(config != null), (files != null && net.mtu.eggplant.util.CollectionUtils.checkInstanceOf(files, File.class))

getSymtab

public static Symtab getSymtab()
Get the symbol table.


getExitCode

public static int getExitCode()
Get the exit code.