6
6
import intermediateModel .interfaces .IASTMethod ;
7
7
import intermediateModel .structure .ASTClass ;
8
8
import intermediateModel .visitors .creation .JDTVisitor ;
9
+ import intermediateModel .visitors .creation .filter .ElseIf ;
9
10
import intermediateModelHelper .envirorment .temporal .TemporalInfo ;
10
11
import intermediateModelHelper .envirorment .temporal .structure .TimeTypes ;
11
12
import intermediateModelHelper .indexing .IndexingProject ;
@@ -83,7 +84,7 @@ public void do_job(String[] args) throws Exception {
83
84
Iterator <File > i = IndexingProject .getJavaFiles (root_path );
84
85
85
86
BufferedWriter writer = new BufferedWriter (new FileWriter (output + name + ".csv" ));
86
- writer .write ("class;method;line;variable\n " );
87
+ writer .write ("class;method;line;variable;path \n " );
87
88
88
89
//stats
89
90
int nClass = 0 ;
@@ -105,7 +106,7 @@ public void do_job(String[] args) throws Exception {
105
106
nFiles ++;
106
107
//each class
107
108
sParse = System .currentTimeMillis ();
108
- List <ASTClass > result = JDTVisitor .parse (filename , root_path , false );
109
+ List <ASTClass > result = JDTVisitor .parse (filename , root_path , ElseIf . filter , false );
109
110
eParse = System .currentTimeMillis ();
110
111
timeSpentParsing += (eParse - sParse );
111
112
for (ASTClass c : result ){
@@ -133,8 +134,8 @@ public void do_job(String[] args) throws Exception {
133
134
for (VariableNotCorrect v : vars ) {
134
135
nError ++;
135
136
String e = String .format (
136
- "%s;%s;%d;%s\n " ,
137
- c .fullName (), m .getName (), v .getWhere ().getLine (), v .getVarName ()
137
+ "%s;%s;%d;%s;%s \n " ,
138
+ c .fullName (), m .getName (), v .getWhere ().getLine (), v .getVarName (), c . getPath ()
138
139
);
139
140
if (!errors .contains (e )) {
140
141
errors .add (e );
0 commit comments