MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / Type

Method Type

chapter23/src/main/java/com/seaofnodes/simple/type/Type.java:82–87  ·  view source on GitHub ↗
(byte type)

Source from the content-addressed store, hash-verified

80 private static final String[] STRS = new String[]{"Bot","Top","Ctrl","~Ctrl","null","~nil"};
81 static final int[] CNTS = new int[TFLD+1];
82 protected Type(byte type) {
83 _type = type; // RTTI
84 _uid = (char)UID++; // A unique ID for every type
85 assert _uid!=0; // Overflow
86 CNTS[type]++;
87 }
88
89 public static final Type BOTTOM = new Type( TBOT ).intern(); // ALL
90 public static final Type TOP = BOTTOM.dual();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected