-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathStatement.java
49 lines (36 loc) · 1.03 KB
/
Statement.java
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Set;
import java.util.HashSet;
public class Statement implements Serializable {
public int startLine;
public int endLine;
public int hashNumber;
public int scopeLevel;
public boolean hasMethodInvocation = false;
public HashSet<String> nameList;
public HashSet<String> varList;
public Statement(int value, int sLine, int eLine) {
startLine = sLine;
endLine = eLine;
hashNumber = value;
}
public HashSet<String> getNameList() {
return nameList;
}
public void insertNameList(HashSet<String> nameList_in) {
nameList = nameList_in;
}
public void insertVarList(HashSet<String> varList_in) {
varList = varList_in;
}
public void insertScope(int level) {
scopeLevel = level;
}
public void enableMethodInvocation() {
hasMethodInvocation = true;
}
public boolean hasMethodInvocation() {
return hasMethodInvocation;
}
}