blob: 5391ac825b199b212cd9f50207da5bc182d6daf5 (
plain)
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
|
package spiglet.spiglet2kanga;
public class SpgTemp extends SpgSimpExpr {
public SpgTemp(int n) {
super(SpgSimpExpr.SExprType.TEMP);
num = n;
}
public int tempNum() {
return num;
}
public String toString() {
return "TEMP " + num;
}
@Override
public boolean equals(Object t) {
if (t instanceof SpgTemp) {
return num==((SpgTemp)t).num;
} else {
return false;
}
}
@Override
public int hashCode() {
return num;
}
}
|