Simple Comment Case
This commit is contained in:
parent
784a51e75c
commit
bd2cf6c26a
3 changed files with 13 additions and 4 deletions
|
@ -91,6 +91,7 @@ public class Function {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void body(String content, CleanerPool cleaner) throws Exception{
|
private void body(String content, CleanerPool cleaner) throws Exception{
|
||||||
|
System.out.println("BODY "+content);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void show(int tab){
|
public void show(int tab){
|
||||||
|
|
|
@ -21,6 +21,8 @@ public class Import {
|
||||||
this.name = matcher.group(2);
|
this.name = matcher.group(2);
|
||||||
return matcher.group(1).length();
|
return matcher.group(1).length();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public int DoYouSeeMe(){ return false; }
|
||||||
|
|
||||||
public String getName(){
|
public String getName(){
|
||||||
return this.name;
|
return this.name;
|
||||||
|
|
|
@ -81,8 +81,16 @@ public class JavaParser{
|
||||||
String content = "";
|
String content = "";
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
|
CleanerPool cleaner = new CleanerPool(
|
||||||
|
new Cleaner("CONSTANT_STRING",'"','"'),
|
||||||
|
new Cleaner("CONSTANT_CHAR",'\'','\''));
|
||||||
|
|
||||||
String line;
|
String line;
|
||||||
while((line = reader.readLine()) != null) content+=line;
|
while((line = reader.readLine()) != null){
|
||||||
|
index = line.indexOf("//");
|
||||||
|
if(index >= 0) line = line.substring(0, index);
|
||||||
|
content+=line;
|
||||||
|
}
|
||||||
|
|
||||||
// content = CleanerPool.getterToDelete.clean(content);
|
// content = CleanerPool.getterToDelete.clean(content);
|
||||||
|
|
||||||
|
@ -99,9 +107,7 @@ public class JavaParser{
|
||||||
}
|
}
|
||||||
|
|
||||||
this.clazz = new Class();
|
this.clazz = new Class();
|
||||||
index = this.clazz.parse(content, new CleanerPool(
|
index = this.clazz.parse(content, cleaner);
|
||||||
new Cleaner("CONSTANT_STRING",'"','"'),
|
|
||||||
new Cleaner("CONSTANT_CHAR",'\'','\'')));
|
|
||||||
content = content.substring(index);
|
content = content.substring(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue