public ImportFixer() { try { castRe = new RE("[^a-zA-Z0-9_]\\("+classRegexp+"\\)"); declRe = new RE(classRegexp+leastOneSpaceRegexp+wordRegexp+maybeSpaceRegexp+";"); assiRe = new RE(classRegexp+leastOneSpaceRegexp+wordRegexp+maybeSpaceRegexp+"="); instRe = new RE("instanceof"+leastOneSpaceRegexp+classRegexp); newRe = new RE("new"+leastOneSpaceRegexp+classRegexp); classRe = new RE("class"+leastOneSpaceRegexp+classRegexp); stringLitRe = new RE("\"[^\"]*\""); cPlusCommentRe = new RE("/\\*[^/*]*\\*/"); cPlusStartCommentRe = new RE("/\\*[^/*]*"); cPlusEndCommentRe = new RE("[^/*]*\\*/"); cCommentRe = new RE("//.*$"); } catch(REException ree) { System.err.println("bad ree: "+ree.getMessage()); } }