Debian Codegraph @

src/smetana/core/UnsupportedStarStruct.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program.
18 *
19 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
20 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
21 *
22 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
23 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
24 *
25 * You may obtain a copy of the License at
26 *
27 * http://www.eclipse.org/legal/epl-v10.html
28 *
29 * Unless required by applicable law or agreed to in writing, software
30 * distributed under the License is distributed on an "AS IS" BASIS,
31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
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 }