Main

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.core.parser.JFlex
Class Main

    java.lang.Object
      weka.core.parser.JFlex.Main

    public class Main

extends java.lang.Object

This is the main class of JFlex controlling the scanner generation process. It is responsible for parsing the commandline, getting input files, starting up the GUI if necessary, etc.

Version:
  JFlex 1.4.1, $Revision: 1.1 $, $Date: 2008-05-09 09:14:11 $
Author:
  Gerwin Klein

Field Summary
`static java.lang.String` | `version` JFlex version

Constructor Summary
`Main()`

Method Summary
`static void` | `generate(java.io.File inputFile)` Generates a scanner for the specified input file.
`static void` | `generate(java.lang.String[] argv)`
`static void` | `main(java.lang.String[] argv)` Starts the generation process with the files in `argv` or pops up a window to choose a file, when `argv` doesn't have any file entries.
`static java.util.Vector` | `parseOptions(java.lang.String[] argv)`
`static void` | `printUsage()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### version

    public static final java.lang.String version

  JFlex version

  See Also:
    Constant Field Values

Constructor Detail

### Main

    public Main()

Method Detail

### generate

    public static void generate(java.io.File inputFile)

  Generates a scanner for the specified input file.

  Parameters:
    `inputFile` - a file containing a lexical specification to generate a scanner for.

### parseOptions

    public static java.util.Vector parseOptions(java.lang.String[] argv)
                                         throws SilentExit

  Throws:
    `SilentExit`

### printUsage

    public static void printUsage()

### generate

    public static void generate(java.lang.String[] argv)
                         throws SilentExit

  Throws:
    `SilentExit`

### main

    public static void main(java.lang.String[] argv)

  Starts the generation process with the files in `argv` or pops up a window to choose a file, when `argv` doesn't have any file entries.

  Parameters:
    `argv` - the commandline.

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD