|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adamcornett.cminus.Compiler.flag
private static class Compiler.flag
Represents a command line argument or flag
| Field Summary | |
|---|---|
(package private) String |
description
The description of the flag, used when printing the help/usage message |
(package private) boolean |
isRequired
True if the flag must be set on the command line |
(package private) static HashMap<String,Compiler.flag> |
longFlags
A collection of all flags mapped to the long string |
(package private) String |
longName
This is a long version (full word) version of a flag. |
(package private) static HashMap<Character,Compiler.flag> |
shortFlags
A collection of all flags mapped to the short string |
(package private) Character |
shortName
This is the short (single character) version of a flag. |
(package private) boolean |
takesValue
True if the flag requires a value. |
(package private) String |
value
The value given on the command line |
| Constructor Summary | |
|---|---|
Compiler.flag(Character s,
String l,
String d,
boolean v,
boolean r)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Compiler.flag o)
|
boolean |
equals(Object obj)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static HashMap<String,Compiler.flag> longFlags
static HashMap<Character,Compiler.flag> shortFlags
String description
boolean isRequired
String longName
Character shortName
boolean takesValue
String value
| Constructor Detail |
|---|
public Compiler.flag(Character s,
String l,
String d,
boolean v,
boolean r)
s - Short arg (single character)l - Long Argd - Descriptionv - Takes Valuer - Required| Method Detail |
|---|
public int compareTo(Compiler.flag o)
compareTo in interface Comparable<Compiler.flag>public boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||