| java.lang.Object de.uka.ilkd.key.util.AddAHead
AddAHead | public class AddAHead (Code) | | |
Method Summary | |
public void | addHeader(File f, int type) | public int | containsHeader(File f, int type) | public String | ending(String fn) | public BufferedReader | getBufferedReader(File file) | public void | handleFile(File f) | public static int[] | initCounter() | public static void | main(String args) searches files for old and new headers. | public void | readHeader(String f) | public String[] | readLines(String f) | public void | readOldHeader(String f) | public void | removeOldHeader(File f, int type) | public boolean | startsWithOne(String s0, String[] s) | public String | statistics() | public String | summary(String ending, int countFile, int countRemoveFile, int countAddFile, int countCode, int countComment, int countEmpty) | public void | visitFile(File currentFile) |
AddAHead | public AddAHead()(Code) | | |
addHeader | public void addHeader(File f, int type)(Code) | | |
containsHeader | public int containsHeader(File f, int type)(Code) | | |
initCounter | public static int[] initCounter()(Code) | | |
main | public static void main(String args)(Code) | | searches files for old and new headers. If an old header is found,
the new one is inserted instead. If a new one is found, nothing
happens. Some statistics is finally printed. Comments signs are
used as in the commentsstart, commentsend arrays. Lines in
notToRemove are skipped and the header is inserted after them.
Parameters: args - First parameter contains the file to start from. If itis a directory all files below that directory areconsidered. Second parameter is a String describing the file wherethe new header can be found. This file should be text without anycomment characters. The Third parameter is the filename of the oldheader that is to be replaced by the new header. The third one isoptional. |
removeOldHeader | public void removeOldHeader(File f, int type)(Code) | | |
summary | public String summary(String ending, int countFile, int countRemoveFile, int countAddFile, int countCode, int countComment, int countEmpty)(Code) | | |
visitFile | public void visitFile(File currentFile)(Code) | | |
|
|