| 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 |
package smetana.core; |
| 38 |
|
| 39 |
import smetana.core.amiga.Area; |
| 40 |
import smetana.core.amiga.StarStruct; |
| 41 |
|
| 42 |
public class UnsupportedStarStruct implements StarStruct { |
| 43 |
|
| 44 |
private static int CPT = 0; |
| 45 |
public final int UID; |
| 46 |
|
| 47 |
public UnsupportedStarStruct() { |
| 48 |
this.UID = CPT++; |
| 49 |
} |
| 50 |
|
| 51 |
public __ptr__ unsupported() { |
| 52 |
throw new UnsupportedOperationException(getClass().toString()); |
| 53 |
} |
| 54 |
|
| 55 |
public int comparePointer(__ptr__ other) { |
| 56 |
throw new UnsupportedOperationException(getClass().toString()); |
| 57 |
} |
| 58 |
|
| 59 |
public int minus(__ptr__ other) { |
| 60 |
throw new UnsupportedOperationException(getClass().toString()); |
| 61 |
} |
| 62 |
|
| 63 |
public int getInt() { |
| 64 |
throw new UnsupportedOperationException(getClass().toString()); |
| 65 |
} |
| 66 |
|
| 67 |
public void setInt(int value) { |
| 68 |
throw new UnsupportedOperationException(getClass().toString()); |
| 69 |
} |
| 70 |
|
| 71 |
public double getDouble() { |
| 72 |
throw new UnsupportedOperationException(getClass().toString()); |
| 73 |
} |
| 74 |
|
| 75 |
public void setDouble(double value) { |
| 76 |
throw new UnsupportedOperationException(getClass().toString()); |
| 77 |
} |
| 78 |
|
| 79 |
public __ptr__ getPtr() { |
| 80 |
throw new UnsupportedOperationException(getClass().toString()); |
| 81 |
} |
| 82 |
|
| 83 |
public void setPtr(__ptr__ value) { |
| 84 |
throw new UnsupportedOperationException(getClass().toString()); |
| 85 |
} |
| 86 |
|
| 87 |
public boolean isSameThan(StarStruct other) { |
| 88 |
throw new UnsupportedOperationException(getClass().toString()); |
| 89 |
} |
| 90 |
|
| 91 |
public Class getRealClass() { |
| 92 |
throw new UnsupportedOperationException(getClass().toString()); |
| 93 |
} |
| 94 |
|
| 95 |
public __struct__ getStruct() { |
| 96 |
throw new UnsupportedOperationException(getClass().toString()); |
| 97 |
} |
| 98 |
|
| 99 |
public Area getArea(String name) { |
| 100 |
throw new UnsupportedOperationException(name + " " + getClass().toString()); |
| 101 |
} |
| 102 |
|
| 103 |
public String getUID36() { |
| 104 |
throw new UnsupportedOperationException(getClass().toString()); |
| 105 |
} |
| 106 |
|
| 107 |
public String getDebug(String fieldName) { |
| 108 |
throw new UnsupportedOperationException(getClass().toString()); |
| 109 |
} |
| 110 |
|
| 111 |
public void setInt(String fieldName, int data) { |
| 112 |
throw new UnsupportedOperationException(fieldName + " " + getClass().toString()); |
| 113 |
} |
| 114 |
|
| 115 |
public void setDouble(String fieldName, double data) { |
| 116 |
throw new UnsupportedOperationException(fieldName + " " + getClass().toString()); |
| 117 |
} |
| 118 |
|
| 119 |
public __ptr__ plus(int pointerMove) { |
| 120 |
throw new UnsupportedOperationException(getClass().toString()); |
| 121 |
} |
| 122 |
|
| 123 |
public void setStruct(String fieldName, __struct__ newData) { |
| 124 |
throw new UnsupportedOperationException(fieldName + " " + getClass().toString()); |
| 125 |
} |
| 126 |
|
| 127 |
public __ptr__ setPtr(String fieldName, __ptr__ newData) { |
| 128 |
throw new UnsupportedOperationException(fieldName + " " + getClass().toString()); |
| 129 |
} |
| 130 |
|
| 131 |
public void memcopyFrom(Area source) { |
| 132 |
throw new UnsupportedOperationException(getClass().toString()); |
| 133 |
} |
| 134 |
|
| 135 |
public void copyDataFrom(__struct__ other) { |
| 136 |
throw new UnsupportedOperationException(getClass().toString()); |
| 137 |
} |
| 138 |
|
| 139 |
public void setStruct(__struct__ value) { |
| 140 |
throw new UnsupportedOperationException(getClass().toString()); |
| 141 |
} |
| 142 |
|
| 143 |
public void copyDataFrom(__ptr__ arg) { |
| 144 |
throw new UnsupportedOperationException(getClass().toString()); |
| 145 |
} |
| 146 |
|
| 147 |
public __ptr__ castTo(Class dest) { |
| 148 |
System.err.println("I am " + toString() + " " + UID); |
| 149 |
throw new UnsupportedOperationException(dest + " " + getClass().toString()); |
| 150 |
} |
| 151 |
|
| 152 |
public Object addVirtualBytes(int virtualBytes) { |
| 153 |
throw new UnsupportedOperationException(getClass().toString()); |
| 154 |
} |
| 155 |
|
| 156 |
} |