dk.brics.servletvalidator
Class Analyzer

java.lang.Object
  extended by dk.brics.servletvalidator.Analyzer

public class Analyzer
extends Object

This class handles command line options an prints a helpful string if wrong command line options are given or if something i missing. After the error message this help text is printed:

 These are the possible arguments to ServletValidator:
 -cfg        : Print an easily readable view of the grammar (hard to parse)
 -xml        : Used in combination with -cfg. Print XML view of grammar. (easy to parse)
 -file       : Followed by the name of the file to dump the grammar output to. Default is to write in the console.
 -post       : Analyze doPost method instead of doGet
 -info       : Shows info statements about what the analyzer is doing right now. Prints less than verbose
 -verbose    : Print all debug info (including all intermediate grammars)
 -noanalysis : Do not do any analysis (usful if you just need the grammar)
 -flow       : Print the flow graph in graphviz dot format
 -cl         : Specify classes to analyse. They should all be in your class path. Put the canonical names after this switch (at least 1 required)
 -lenient    : Continue analysing even if there character ranges can contan <,> or "
 -utf16      : Output in UTF-16 instead of the default UTF-8 when writing XML to a file
 

Author:
schwarz

Nested Class Summary
static class Analyzer.ConsoleState
          An enum representing the valid argument switched
 
Constructor Summary
Analyzer()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Analyzer

public Analyzer()
Method Detail

main

public static void main(String[] args)


Copyright © 2008 Mathias Schwarz.