Procházet zdrojové kódy

Declare annotation: guard added for model building... (perf improvement!)

tags/V1_5_0M2
aclement před 19 roky
rodič
revize
08fdf0bb14
1 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. 17
    0
      asm/src/org/aspectj/asm/AsmManager.java

+ 17
- 0
asm/src/org/aspectj/asm/AsmManager.java Zobrazit soubor

@@ -8,6 +8,7 @@
*
* Contributors:
* Mik Kersten initial implementation
* Andy Clement incremental support and switch on/off state
* ******************************************************************/


@@ -37,6 +38,7 @@ public class AsmManager {
protected IHierarchy hierarchy;
private List structureListeners = new ArrayList();
private IRelationshipMap mapper;
private static boolean creatingModel = false;

public static boolean attemptIncrementalModelRepairs = false;
@@ -780,6 +782,21 @@ public class AsmManager {
AsmManager.getDefault().getRelationshipMap());
}
}

/**
* Set to indicate whether we are currently building a structure model, should
* be set up front.
*/
public static void setCreatingModel(boolean b) {
creatingModel = b;
}
/**
* returns true if we are currently generating a structure model, enables
* guarding of expensive operations on an empty/null model.
*/
public static boolean isCreatingModel() { return creatingModel;}
}


Načítá se…
Zrušit
Uložit