|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.optgen.OptionDefinition
| Field Summary | |
private String |
action
|
private String |
argument
|
private int |
caseValue
|
private String |
defaultValue
|
private String |
guiType
|
private ArrayList |
help
|
private String |
longname
|
private ArrayList |
selection
|
static String |
selectionName
Denotes the structure name that the option is using to store the different selections for that option |
static String |
selectionType
Denotes the structure type that the option is using to store the different selections for that option |
private String |
shortname
|
static String |
structureName
Denotes the structure name that the option is using to store the data structrues that store the different selections for that option |
private ArrayList |
tableHeader
|
private String |
type
|
| Constructor Summary | |
OptionDefinition(String longname,
String shortname,
String action,
String type,
String defaultValue,
String argument,
ArrayList tableHeader,
ArrayList selection,
ArrayList help,
int caseValue,
String guiType)
Constructs an option definition |
|
| Method Summary | |
void |
checkIdentifiers(Hashtable identifiers,
String sourceFile)
Check for duplicate identifiers |
void |
checkShortcuts(Hashtable shortcuts,
String sourceFile)
Check for duplicate identifiers |
private String |
getType()
Returns the correct type, based on whether it is of the type StringList, StringSystemProperty, or not |
void |
printCurrentValue(PrintWriter out)
Prints the current value to interface file (java) |
void |
printDefaultValue(PrintWriter out)
Prints the option default values to interface file (java) |
void |
printFieldAndAccessors(PrintWriter out)
Prints the source-code for this option's field declaration and accessor method. |
void |
printGuiType(PrintWriter out)
Prints the value of isNormal to interface file (java) |
void |
printHelpString(PrintWriter out)
Prints the help strings to interface file (java) |
void |
printLongname(PrintWriter out)
Prints the longname string to interface file (java) |
void |
printLongOpts(PrintWriter out)
|
void |
printParseArgument(PrintWriter out)
Prints the parse argument case statement to interface file (java) |
void |
printSelection(PrintWriter out)
Prints the selection of the option to interface file (java) |
void |
printSetOption(PrintWriter out)
Prints the set field case statement to interface file (java) |
void |
printShortOption(PrintWriter out)
|
void |
printTableHeader(PrintWriter out)
Prints the table header of the option to interface file (java) |
void |
printType(PrintWriter out)
Prints the option type strings to interface file (java) |
void |
printUsage(PrintWriter out,
String dashes)
Prints the token definition to interface file (java) |
private static String |
trail(String s)
|
private static ArrayList |
trailArrayList(ArrayList a)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final String longname
private final String shortname
private final String action
private final String type
private final String defaultValue
private final String argument
private final ArrayList tableHeader
private final ArrayList selection
private final ArrayList help
private final int caseValue
private final String guiType
public static final String structureName
public static final String selectionType
public static final String selectionName
| Constructor Detail |
public OptionDefinition(String longname,
String shortname,
String action,
String type,
String defaultValue,
String argument,
ArrayList tableHeader,
ArrayList selection,
ArrayList help,
int caseValue,
String guiType)
| Method Detail |
private static final String trail(String s)
private static final ArrayList trailArrayList(ArrayList a)
public void checkIdentifiers(Hashtable identifiers,
String sourceFile)
throws OptgenError
identifiers - a table of all token identifierssourceFile - the file where the token is defined
OptgenError
public void checkShortcuts(Hashtable shortcuts,
String sourceFile)
throws OptgenError
shortcuts - a table of all token identifierssourceFile - the file where the token is defined
OptgenErrorpublic void printParseArgument(PrintWriter out)
out - the output streampublic void printSetOption(PrintWriter out)
out - the output streampublic void printFieldAndAccessors(PrintWriter out)
out - the output stream
public void printUsage(PrintWriter out,
String dashes)
out - the output streamdashes - the dashes to put in fron of the optionpublic void printLongname(PrintWriter out)
out - the output streampublic void printType(PrintWriter out)
out - the output streampublic void printDefaultValue(PrintWriter out)
out - the output streampublic void printCurrentValue(PrintWriter out)
out - the output stream public void printTableHeader(PrintWriter out)
out - the output streampublic void printSelection(PrintWriter out)
out - the output streampublic void printHelpString(PrintWriter out)
out - the output streampublic void printGuiType(PrintWriter out)
out - the output streampublic void printLongOpts(PrintWriter out)
public void printShortOption(PrintWriter out)
private String getType()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||