1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
public boolean scanResourceBundle(String line,int number,String locationFile){
boolean find=false;
System.out.println(line);
match = parser.find(line, "import java.util.ResourceBundle;");
if (match.find()){
classUseRessourceBundle=true;;
// ResultOperation.getInstance().addRessourceBundlelist(match.group(2), locationFile);
}else {
if (classUseRessourceBundle){
match = parser.find(line, "ResourceBundle\\s(.*)(;|=)");
if (match.find()){
ResultOperation.getInstance().addRessourceBundlelist(match.group(0), locationFile);}
}
}
match = parser.find(line, "java.util.ResourceBundle(.*);");
System.out.println(match.find());
if (match.find()){
ResultOperation.getInstance().addRessourceBundlelist(match.group(0), locationFile);}
return find;
} |
Partager