at.dms.optgen
Class OptionDefinition

java.lang.Object
  |
  +--at.dms.optgen.OptionDefinition

class OptionDefinition
extends java.lang.Object

Declaration of one option, parsed from option definition file.


Constructor Summary
OptionDefinition(java.lang.String longname, java.lang.String shortname, java.lang.String type, java.lang.String defaultValue, java.lang.String argument, java.lang.String help)
          Constructs an option definition.
 
Method Summary
 void checkIdentifiers(java.util.Map identifiers, java.lang.String sourceFile)
          Check for duplicate identifiers.
 void checkShortcuts(java.util.Map shortcuts, java.lang.String sourceFile)
          Check for duplicate identifiers.
 void printFields(java.io.PrintWriter out)
          Prints the token definition to interface file (java).
 void printLongOpts(java.io.PrintWriter out)
           
 void printParseArgument(java.io.PrintWriter out)
          Prints the token definition to interface file (java).
 void printShortOption(java.io.PrintWriter out)
           
 void printUsage(java.io.PrintWriter out)
          Prints the token definition to interface file (java).
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionDefinition

public OptionDefinition(java.lang.String longname,
                        java.lang.String shortname,
                        java.lang.String type,
                        java.lang.String defaultValue,
                        java.lang.String argument,
                        java.lang.String help)
Constructs an option definition.
Method Detail

checkIdentifiers

public void checkIdentifiers(java.util.Map identifiers,
                             java.lang.String sourceFile)
                      throws OptgenError
Check for duplicate identifiers.
Parameters:
identifiers - a table of all token identifiers
sourceFile - the file where the token is defined

checkShortcuts

public void checkShortcuts(java.util.Map shortcuts,
                           java.lang.String sourceFile)
                    throws OptgenError
Check for duplicate identifiers.
Parameters:
identifiers - a table of all token identifiers.
sourceFile - the file where the token is defined.

printParseArgument

public void printParseArgument(java.io.PrintWriter out)
Prints the token definition to interface file (java).
Parameters:
out - The output stream.

printFields

public void printFields(java.io.PrintWriter out)
Prints the token definition to interface file (java).
Parameters:
out - the output stream.

printUsage

public void printUsage(java.io.PrintWriter out)
Prints the token definition to interface file (java).
Parameters:
out - the output stream.

printLongOpts

public void printLongOpts(java.io.PrintWriter out)

printShortOption

public void printShortOption(java.io.PrintWriter out)