|
|||||||||
| Home >> All >> org >> hsqldb >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hsqldb.util
Class CodeSwitcher

java.lang.Objectorg.hsqldb.util.CodeSwitcher
- public class CodeSwitcher
- extends java.lang.Object
Modifies the source code to support different JDK or profile settings.
Usage: java CodeSwitcher [paths] [labels] [+][-] If no labels are specified then all used labels in the source code are shown. Use +MODE to switch on the things labeld MODE Use -MODE to switch off the things labeld MODE Path: Any number of path or files may be specified. Use . for the current directory (including sub-directories). Example: java CodeSwitcher +JAVA2 . This example switches on code labeled JAVA2 in all *.java files in the current directory and all subdirectories. java CodeSwitcher + . Adds test code to the code. java CodeSwitcher - . Removes test code from the code
- Version:
- 1.7.0
| Field Summary | |
private boolean |
bAdd
|
private boolean |
bRemove
|
private static java.lang.String |
ls
|
private static int |
MAX_LINELENGTH
|
private java.util.Vector |
vList
|
private java.util.Vector |
vSwitches
|
private java.util.Vector |
vSwitchOff
|
private java.util.Vector |
vSwitchOn
|
| Constructor Summary | |
(package private) |
CodeSwitcher()
Constructor declaration |
| Method Summary | |
(package private) void |
addDir(java.lang.String path)
Method declaration |
(package private) void |
addTest(java.lang.String name,
int maxline)
Method declaration |
(package private) static java.util.Vector |
getFileLines(java.io.File f)
|
(package private) boolean |
isLongline(java.lang.String s)
Method declaration |
static void |
main(java.lang.String[] a)
Method declaration |
(package private) static void |
printError(java.lang.String error)
Method declaration |
(package private) void |
printSwitches()
Method declaration |
(package private) void |
process()
Method declaration |
(package private) boolean |
processFile(java.lang.String name)
Method declaration |
(package private) void |
removeTest(java.lang.String name)
Method declaration |
(package private) static void |
showUsage()
Method declaration |
(package private) int |
testFile(java.lang.String name)
Method declaration |
(package private) boolean |
testLine(java.lang.String line)
Method declaration |
(package private) static void |
writeFileLines(java.util.Vector v,
java.io.File f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ls
private static final java.lang.String ls
vList
private java.util.Vector vList
vSwitchOn
private java.util.Vector vSwitchOn
vSwitchOff
private java.util.Vector vSwitchOff
vSwitches
private java.util.Vector vSwitches
bAdd
private boolean bAdd
bRemove
private boolean bRemove
MAX_LINELENGTH
private static final int MAX_LINELENGTH
- See Also:
- Constant Field Values
| Constructor Detail |
CodeSwitcher
CodeSwitcher()
- Constructor declaration
| Method Detail |
main
public static void main(java.lang.String[] a)
- Method declaration
showUsage
static void showUsage()
- Method declaration
process
void process()
- Method declaration
printSwitches
void printSwitches()
- Method declaration
addDir
void addDir(java.lang.String path)
- Method declaration
removeTest
void removeTest(java.lang.String name)
- Method declaration
addTest
void addTest(java.lang.String name, int maxline)
- Method declaration
testFile
int testFile(java.lang.String name)
- Method declaration
testLine
boolean testLine(java.lang.String line)
- Method declaration
isLongline
boolean isLongline(java.lang.String s)
- Method declaration
processFile
boolean processFile(java.lang.String name)
- Method declaration
getFileLines
static java.util.Vector getFileLines(java.io.File f) throws java.io.IOException
writeFileLines
static void writeFileLines(java.util.Vector v, java.io.File f) throws java.io.IOException
printError
static void printError(java.lang.String error)
- Method declaration
|
|||||||||
| Home >> All >> org >> hsqldb >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hsqldb.util.CodeSwitcher