-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIdEntry.java
More file actions
48 lines (37 loc) · 842 Bytes
/
IdEntry.java
File metadata and controls
48 lines (37 loc) · 842 Bytes
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
public class IdEntry {
String name;
String token;
String dataType;
int blockLevel;
String scope;
int offset;
int linenum;
int size;
public IdEntry(String name, String dataType, int blockLevel) {
this.name = name;
this.dataType = dataType;
this.blockLevel = blockLevel;
}
public IdEntry(String name, int blockLevel) {
this.name = name;
this.blockLevel = blockLevel;
}
public IdEntry(String name, int linenum, String token) {
this.name = name;
this.token = token;
this.linenum = linenum;
}
public IdEntry(String name, String dataType, String token) {
this.name = name;
this.token = token;
this.dataType = dataType;
}
public String toString(){
String print = "";
if(name.equals("id"))
print = token;
else
print = name;
return print + " blockLevel: " + blockLevel;
}
}