Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.DataType
Source: src/com/multiversesocial/hyperview/DataType.java
3 bits for Address Mode and 5 bits for type (0 -31). Address Type = \ / - /
public class DataType extends Linkable implements DataConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
int arrayLength0 | No comment in source; assigned in DataType(). | ||
int arrayLength1 | No comment in source; assigned in DataType(). | ||
int arrayLength2 | No comment in source; assigned in DataType(). | ||
byte type | Address mode -> 111 00000 |
| Signature | Description | Source |
|---|---|---|
DataType() | 3 statement(s); calls super(). | |
DataType(byte tType) | 3 statement(s); calls super(). | |
DataType(int tType) | 3 statement(s); calls super(). | |
DataType(int tType, String tName) | 4 statement(s); calls super(). | |
DataType(int tType, int tLength) | 5 statement(s); calls super(), requireNonNeg(), setAddressing(). | |
DataType(int tType, int tWidth, int tHeight) | 6 statement(s); calls super(), requireNonNeg(), setAddressing(). | |
DataType(int tType, int tWidth, int tHeight, int tDepth) | 6 statement(s); calls super(), requireNonNeg(), setAddressing(). |
| Signature | Description | Source |
|---|---|---|
static void requireNonNeg(int tLength, String tWhat) | Reject negative array lengths (fixed 2026-09-24: previously length & 0xff stored a wrong positive). Style matches AnimGob: IllegalArgumentException. | |
void setAddressing(int tMode) | The *_ADDRESSING constants are 2 bit mode numbers (0 = 8, 1 = 16, 2 = 32, 3 = 64 bit, see the "x 01 xxxx" comments in DataConstants); shift them into ADDRESSING_MASK (0x60) so that type & TYPE_MASK still gives the unmodified type. Shared by ClassFieldLink and MemoryFieldLink. |
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList(), setName(String)
subclass — ClassFieldLink.java, line 16
16 public class ClassFieldLink extends DataType
17 {
subclass — MemoryFieldLink.java, line 14
14 public class MemoryFieldLink extends DataType implements DataConstants,SharedMemoryListener
15 {