public void extend(DynStruct dynStruct) { if (this.classes.containsKey(dynStruct.getFullName())) { return; } this.classes.put(dynStruct.getFullName(), dynStruct); this.forceConsolide(); }
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(); }
private void removeDynStruct(DynStruct superDynStruct) { if (this.classes.containsKey(superDynStruct.getFullName())) { this.classes.remove(superDynStruct.getFullName()); } }