Usage: java CodeSwitcher paths|{--pathlist=listfile} [{+|-}label...] [+][-]
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
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int | |
| private ArrayList | |
| private ArrayList | |
| private ArrayList | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv static ArrayList | |
| public static void | |
| pack-priv static void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv static void | |
| public int | |
| pack-priv static void |
| ls | back to summary |
|---|---|
| private static final String ls | |
| MAX_LINELENGTH | back to summary |
|---|---|
| private static final int MAX_LINELENGTH | |
| vList | back to summary |
|---|---|
| private ArrayList<String> vList | |
| vSwitches | back to summary |
|---|---|
| private ArrayList<String> vSwitches | |
| vSwitchOff | back to summary |
|---|---|
| private ArrayList<String> vSwitchOff | |
| vSwitchOn | back to summary |
|---|---|
| private ArrayList<String> vSwitchOn | |
| CodeSwitcher | back to summary |
|---|---|
| pack-priv CodeSwitcher() Constructor declaration | |
| addDir | back to summary |
|---|---|
| pack-priv void addDir(String path) | |
| addDir | back to summary |
|---|---|
| pack-priv void addDir(File f) | |
| getFileLines | back to summary |
|---|---|
| pack-priv static ArrayList | |
| main | back to summary |
|---|---|
| public static void main(String[] a) | |
| printError | back to summary |
|---|---|
| pack-priv static void printError(String error) | |
| printSwitches | back to summary |
|---|---|
| pack-priv void printSwitches() Method declaration | |
| process | back to summary |
|---|---|
| pack-priv void process() Method declaration | |
| processFile | back to summary |
|---|---|
| pack-priv boolean processFile(String name) | |
| showUsage | back to summary |
|---|---|
| pack-priv static void showUsage() Method declaration | |
| size | back to summary |
|---|---|
| public int size() | |
| writeFileLines | back to summary |
|---|---|
| pack-priv static void writeFileLines(ArrayList<E> v, File f) throws IOException | |