|
1 |
| package edu.rice.cs.dynamicjava.symbol.type; |
|
2 |
| |
|
3 |
| import edu.rice.cs.dynamicjava.symbol.*; |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| @SuppressWarnings("unused") |
|
11 |
| public class RawClassType extends ClassType { |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
17942
| public RawClassType(DJClass in_ofClass) {
|
|
18 |
17942
| super(in_ofClass);
|
|
19 |
| } |
|
20 |
| |
|
21 |
| |
|
22 |
37189
| public <RetType> RetType apply(TypeVisitor<RetType> visitor) {
|
|
23 |
37189
| return visitor.forRawClassType(this);
|
|
24 |
| } |
|
25 |
| |
|
26 |
16
| public void apply(TypeVisitor_void visitor) {
|
|
27 |
16
| visitor.forRawClassType(this);
|
|
28 |
| } |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
0
| public java.lang.String toString() {
|
|
35 |
0
| java.io.StringWriter w = new java.io.StringWriter();
|
|
36 |
0
| walk(new ToStringWalker(w, 2));
|
|
37 |
0
| return w.toString();
|
|
38 |
| } |
|
39 |
| |
|
40 |
| |
|
41 |
| |
|
42 |
| |
|
43 |
0
| public void output(java.io.Writer writer) {
|
|
44 |
0
| walk(new ToStringWalker(writer, 2));
|
|
45 |
| } |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
| |
|
50 |
| |
|
51 |
60579
| public boolean equals(java.lang.Object obj) {
|
|
52 |
0
| if (obj == null) return false;
|
|
53 |
60579
| if ((obj.getClass() != this.getClass()) || (obj.hashCode() != this.hashCode())) {
|
|
54 |
18162
| return false;
|
|
55 |
| } |
|
56 |
| else { |
|
57 |
42417
| RawClassType casted = (RawClassType) obj;
|
|
58 |
42417
| DJClass temp_ofClass = ofClass();
|
|
59 |
42417
| DJClass casted_ofClass = casted.ofClass();
|
|
60 |
0
| if (!(temp_ofClass == casted_ofClass || temp_ofClass.equals(casted_ofClass))) return false;
|
|
61 |
42417
| return true;
|
|
62 |
| } |
|
63 |
| } |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
| |
|
69 |
| |
|
70 |
| |
|
71 |
8287
| public int generateHashCode() {
|
|
72 |
8287
| int code = getClass().hashCode();
|
|
73 |
8287
| DJClass temp_ofClass = ofClass();
|
|
74 |
8287
| code ^= temp_ofClass.hashCode();
|
|
75 |
8287
| return code;
|
|
76 |
| } |
|
77 |
| |
|
78 |
0
| public void walk(TreeWalker w) {
|
|
79 |
0
| if (w.visitNode(this, "RawClassType", 1)) {
|
|
80 |
0
| DJClass temp_ofClass = ofClass();
|
|
81 |
0
| if (w.visitNodeField("ofClass", temp_ofClass)) {
|
|
82 |
0
| w.visitUnknownObject(temp_ofClass);
|
|
83 |
0
| w.endNodeField("ofClass", temp_ofClass);
|
|
84 |
| } |
|
85 |
0
| w.endNode(this, "RawClassType", 1);
|
|
86 |
| } |
|
87 |
| } |
|
88 |
| |
|
89 |
| } |