Exemplo n.º 1
0
  public static void runStaticInitializers() {
    assert !initializationComplete;
    for (TypeDef typeDef : allTypes.values()) {
      typeDef.init();

      if (typeDef.desc.equals(RawType.coreUnit)) {
        // TODO: Fragile...
        objUnit = typeDef.staticFields[0];
      }
      if (typeDef.desc.equals(RawType.coreRelation)) {
        // TODO: Fragile...
        objLT = typeDef.staticFields[0];
        objGT = typeDef.staticFields[1];
        objEQ = typeDef.staticFields[2];
      }
    }
    initializationComplete = true;
  }
Exemplo n.º 2
0
 public static void linkAll() {
   for (TypeDef typeDef : allTypes.values()) typeDef.link();
 }