Debian Codegraph @

src/smetana/core/ArrayOfInteger.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
41 public class ArrayOfInteger implements __array_of_integer__ {
42
43 private final int[] data;
44 private final int position;
45
46 public ArrayOfInteger(int[] data, int position) {
47 this.data = data;
48 this.position = position;
49
50 }
51
52 public String getUID36() {
53 throw new UnsupportedOperationException();
54 }
55
56 public void swap(int i, int j) {
57 throw new UnsupportedOperationException();
58 }
59
60 public void realloc(int nb) {
61 throw new UnsupportedOperationException();
62 }
63
64 public int comparePointerInternal(__array_of_integer__ other) {
65 throw new UnsupportedOperationException();
66 }
67
68 public final __array_of_integer__ move(int delta) {
69 return plus(delta);
70 }
71
72 public __array_of_integer__ plus(int delta) {
73 return new ArrayOfInteger(data, position + delta);
74 }
75
76 public Area getInternal(int idx) {
77 throw new UnsupportedOperationException();
78 }
79
80 public void memcopyFrom(Area source) {
81 throw new UnsupportedOperationException();
82 }
83
84 public int getInt() {
85 return data[position];
86 }
87
88 public void setInt(int value) {
89 data[position] = value;
90 }
91
92 }