2017-07-03 17:59:53 +00:00
|
|
|
/* ========================================================================
|
|
|
|
* PlantUML : a free UML diagram generator
|
|
|
|
* ========================================================================
|
|
|
|
*
|
2023-02-22 18:43:48 +00:00
|
|
|
* Project Info: https://plantuml.com
|
2017-07-03 17:59:53 +00:00
|
|
|
*
|
|
|
|
* If you like this project or if you find it useful, you can support us at:
|
|
|
|
*
|
2023-02-22 18:43:48 +00:00
|
|
|
* https://plantuml.com/patreon (only 1$ per month!)
|
|
|
|
* https://plantuml.com/paypal
|
2017-07-03 17:59:53 +00:00
|
|
|
*
|
|
|
|
* This file is part of Smetana.
|
|
|
|
* Smetana is a partial translation of Graphviz/Dot sources from C to Java.
|
|
|
|
*
|
2023-02-22 18:43:48 +00:00
|
|
|
* (C) Copyright 2009-2024, Arnaud Roques
|
2017-07-03 17:59:53 +00:00
|
|
|
*
|
|
|
|
* This translation is distributed under the same Licence as the original C program.
|
|
|
|
*
|
|
|
|
* THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
|
|
|
|
* LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
|
|
|
|
*
|
|
|
|
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
|
|
|
|
* RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
|
|
*
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
package smetana.core;
|
|
|
|
|
2020-12-06 21:43:09 +00:00
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
2017-07-03 17:59:53 +00:00
|
|
|
|
2020-12-06 21:43:09 +00:00
|
|
|
public class UnsupportedStarStruct implements __struct__, __ptr__ {
|
|
|
|
|
2023-02-28 21:22:51 +00:00
|
|
|
// ::comment when __CORE__
|
2020-12-06 21:43:09 +00:00
|
|
|
public final static AtomicInteger CPT = new AtomicInteger();
|
2023-02-22 18:43:48 +00:00
|
|
|
// ::done
|
2023-02-28 21:22:51 +00:00
|
|
|
// ::uncomment when __CORE__
|
2023-02-22 18:43:48 +00:00
|
|
|
// public static int CPT;
|
|
|
|
// ::done
|
2018-10-21 19:44:14 +00:00
|
|
|
public final int UID;
|
2023-02-22 18:43:48 +00:00
|
|
|
|
2020-12-06 21:43:09 +00:00
|
|
|
public static UnsupportedStarStruct SPY_ME;
|
|
|
|
|
2018-10-21 19:44:14 +00:00
|
|
|
public UnsupportedStarStruct() {
|
2023-02-28 21:22:51 +00:00
|
|
|
// ::comment when __CORE__
|
2020-12-06 21:43:09 +00:00
|
|
|
this.UID = CPT.incrementAndGet();
|
2023-02-22 18:43:48 +00:00
|
|
|
// ::done
|
2023-02-28 21:22:51 +00:00
|
|
|
// ::uncomment when __CORE__
|
2023-02-22 18:43:48 +00:00
|
|
|
// this.UID = CPT++;
|
|
|
|
// ::done
|
2018-10-21 19:44:14 +00:00
|
|
|
}
|
|
|
|
|
2020-12-06 21:43:09 +00:00
|
|
|
final public __ptr__ unsupported() {
|
2017-07-03 17:59:53 +00:00
|
|
|
throw new UnsupportedOperationException(getClass().toString());
|
|
|
|
}
|
|
|
|
|
2020-12-01 21:39:27 +00:00
|
|
|
public boolean isSameThan(__ptr__ other) {
|
2017-07-03 17:59:53 +00:00
|
|
|
throw new UnsupportedOperationException(getClass().toString());
|
|
|
|
}
|
|
|
|
|
2020-12-01 21:39:27 +00:00
|
|
|
public __ptr__ castTo(Class dest) {
|
|
|
|
System.err.println("I am " + toString() + " " + UID);
|
|
|
|
throw new UnsupportedOperationException(dest + " " + getClass().toString());
|
2017-07-03 17:59:53 +00:00
|
|
|
}
|
|
|
|
|
2023-02-22 18:43:48 +00:00
|
|
|
public Object getTheField(FieldOffset virtualBytes) {
|
2017-07-03 17:59:53 +00:00
|
|
|
throw new UnsupportedOperationException(getClass().toString());
|
|
|
|
}
|
|
|
|
|
2020-12-01 21:39:27 +00:00
|
|
|
public __struct__ copy() {
|
2017-07-03 17:59:53 +00:00
|
|
|
throw new UnsupportedOperationException(getClass().toString());
|
|
|
|
}
|
|
|
|
|
2020-12-01 21:39:27 +00:00
|
|
|
public void ___(__struct__ other) {
|
2017-07-03 17:59:53 +00:00
|
|
|
throw new UnsupportedOperationException(getClass().toString());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|