|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.Panc
public class Panc
| Method Summary | |
|---|---|
static int |
calcNumError(String arg)
Select the usage message |
static void |
catchError(int numerror,
String arg)
Display the usage message |
static void |
catchError(String error)
Display the usage message |
static int |
launchCompiler(Vector<String> options,
Vector<String> arguments,
Vector<String> paths)
Launches the compiler |
static void |
main(String[] args)
|
static void |
postHelp()
Prints the usage message on the screen |
static LinkedList<String> |
readFile(File file)
Reading a file line by line filling them in a list of String |
static LinkedList<String> |
splitObject(String objlist,
LinkedList<String> objectOutput)
Splitting a string in a list of files and adding it in a list |
static void |
veriDir(File dir)
Verify if a directory exists |
static void |
veriFile(File file)
Verify if a file exists |
static org.quattor.pan.Panc.TypeOptBfor |
verifyCompleteStringOpt(String arg,
Vector<String> authorizedOptArg,
Vector<String> authorizedOpt,
boolean lastArg)
Verification of an option given as an entire word |
static Pattern |
verifyPattern(String regex)
Verify that a given String is a valid regular expression. |
static org.quattor.pan.Panc.TypeOptBfor |
verifySingleCharOpt(String arg,
Vector<String> endingOptChar,
boolean lastArg)
Verification of an or several option(s) given as a letter or a group of letter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
public static org.quattor.pan.Panc.TypeOptBfor verifySingleCharOpt(String arg,
Vector<String> endingOptChar,
boolean lastArg)
arg - the option(s)
public static org.quattor.pan.Panc.TypeOptBfor verifyCompleteStringOpt(String arg,
Vector<String> authorizedOptArg,
Vector<String> authorizedOpt,
boolean lastArg)
arg - the option (and its argument separated with '=' if exists)
public static int launchCompiler(Vector<String> options,
Vector<String> arguments,
Vector<String> paths)
public static void postHelp()
public static int calcNumError(String arg)
arg - the input optionpublic static void catchError(String error)
error - the type of error
public static void catchError(int numerror,
String arg)
numerror - the mumber of the error messagearg - the input option/argument
public static LinkedList<String> splitObject(String objlist,
LinkedList<String> objectOutput)
objlist - String containing a list of filesobjectOutput - LinkedList to fill with results
public static LinkedList<String> readFile(File file)
file - the file to be readenpublic static void veriDir(File dir)
dir - the directorypublic static void veriFile(File file)
file - the filepublic static Pattern verifyPattern(String regex)
regex - regular expression to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||