Пример #1
0
 public void extend(DynStruct dynStruct) {
   if (this.classes.containsKey(dynStruct.getFullName())) {
     return;
   }
   this.classes.put(dynStruct.getFullName(), dynStruct);
   this.forceConsolide();
 }
Пример #2
0
  public void extendAll(String[] structNames) {
    if (structNames == null) return;

    for (int i = 0; i < structNames.length; i++) {
      DynStruct dynStruct = manager.get(structNames[i]);
      if (dynStruct == null) {
        throw new DynClassNotFoundException(structNames[i]);
      }
      if (this.classes.containsKey(dynStruct.getFullName())) {
        continue;
      }
      this.classes.put(dynStruct.getFullName(), dynStruct);
    }

    this.forceConsolide();
  }
Пример #3
0
 private void removeDynStruct(DynStruct superDynStruct) {
   if (this.classes.containsKey(superDynStruct.getFullName())) {
     this.classes.remove(superDynStruct.getFullName());
   }
 }