Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.DataType
Source: src/com/multiversesocial/hyperview/DataType.java

DataType

HyperView V3.2 — class
version V3.2 class

Summary

3 bits for Address Mode and 5 bits for type (0 -31). Address Type = \ / - /

Source file: DataType.java

Hierarchy

Extends: Linkable

Implements: DataConstants

Referenced HyperView classes

Media files used

Declaration & members

public class DataType extends Linkable implements DataConstants

Declared in src/com/multiversesocial/hyperview/DataType.java, lines 14–156. 4 field(s), 7 constructor(s), 2 method(s). Every member has an anchor you can link to (e.g. DataType.html#<id>).

Fields (4)

DeclarationValue / initializerDescriptionSource
int arrayLength0No comment in source; assigned in DataType().line 18
int arrayLength1No comment in source; assigned in DataType().line 19
int arrayLength2No comment in source; assigned in DataType().line 20
byte typeAddress mode -> 111 00000line 17

Constructors (7)

SignatureDescriptionSource
DataType()3 statement(s); calls super().line 22
DataType(byte tType)3 statement(s); calls super().line 28
DataType(int tType)3 statement(s); calls super().line 34
DataType(int tType, String tName)4 statement(s); calls super().line 40
DataType(int tType, int tLength)5 statement(s); calls super(), requireNonNeg(), setAddressing().line 48
DataType(int tType, int tWidth, int tHeight)6 statement(s); calls super(), requireNonNeg(), setAddressing().line 75
DataType(int tType, int tWidth, int tHeight, int tDepth)6 statement(s); calls super(), requireNonNeg(), setAddressing().line 106

Methods (2)

SignatureDescriptionSource
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.line 150
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.line 143

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Linkable (7 fields, 2 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList(), setName(String)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

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  {
Hits--