Package gnu.trove

Examples of gnu.trove.TLongObjectHashMap


         if (callingMethod == null)
         {
            callingMethod = new HashMap<String, TLongObjectHashMap>();
            conCalledByMethodBindings.put(callingMethodHash, callingMethod);
         }
         TLongObjectHashMap classMap = callingMethod.get(calledClass);
         if (classMap == null)
         {
            classMap = new TLongObjectHashMap();
            callingMethod.put(calledClass, classMap);
         }
         ArrayList<AdviceBinding> bindings = (ArrayList<AdviceBinding>) classMap.get(calledMethodHash);
         boolean createdBindings = false;
         if (bindings == null)
         {
            bindings = new ArrayList<AdviceBinding>();
            classMap.put(calledMethodHash, bindings);
            createdBindings = true;
         }
         if (!bindings.contains(binding)) bindings.add(binding);

         // this is so that we can undeploy a caller
View Full Code Here


         if (calledClassesMap == null)
         {
            calledClassesMap = new HashMap<String, TLongObjectHashMap>();
            conCalledByMethodInterceptors.put(callingMethodHash, calledClassesMap);
         }
         TLongObjectHashMap calledMethodsMap = calledClassesMap.get(calledClass);
         if (calledMethodsMap == null)
         {
            calledMethodsMap = new TLongObjectHashMap();
            calledClassesMap.put(calledClass, calledMethodsMap);
         }

         ConByMethodInfo info = createConByMethodInfo(calledClass, callingMethod, callingMethodHash, calledCon, calledConHash);
         calledMethodsMap.put(calledConHash, info);
         return info;
      }
View Full Code Here

         if (callingMethod == null)
         {
            callingMethod = new HashMap<String, TLongObjectHashMap>();
            conCalledByMethodBindings.put(callingMethodHash, callingMethod);
         }
         TLongObjectHashMap classMap = callingMethod.get(calledClass);
         if (classMap == null)
         {
            classMap = new TLongObjectHashMap();
            callingMethod.put(calledClass, classMap);
         }
         ArrayList<AdviceBinding> bindings = (ArrayList<AdviceBinding>) classMap.get(calledConHash);
         if (bindings == null)
         {
            bindings = new ArrayList<AdviceBinding>();
            classMap.put(calledConHash, bindings);
         }
      }
View Full Code Here

      }

      private ConByMethodInfo getConCalledByMethod(long callingMethodHash, String calledClass, long calledConHash)
      {
         HashMap<String, TLongObjectHashMap> calledClasses = (HashMap<String, TLongObjectHashMap>) conCalledByMethodInterceptors.get(callingMethodHash);
         TLongObjectHashMap calledMethods = calledClasses.get(calledClass);
         ConByMethodInfo info = (ConByMethodInfo) calledMethods.get(calledConHash);
         return info;
      }
View Full Code Here

         HashMap<String, TLongObjectHashMap> calledClasses = methodCalledByConInterceptors[i];
         if (calledClasses == null) continue;
         for (Map.Entry<String, TLongObjectHashMap> entry : calledClasses.entrySet())
         {
            String cname = entry.getKey();
            TLongObjectHashMap calledMethods = entry.getValue();
            long[] calledKeys = calledMethods.keys();
            for (int j = 0; j < calledKeys.length; j++)
            {
               long calledHash = calledKeys[j];
               ArrayList<AdviceBinding> bindings = getConstructorCallerBindings(i, cname, calledHash);
               bindConstructorCallerInterceptorChain(bindings, i, cname, calledHash);
            }
         }
      }
      if (conByMethodData != null)
      {
         getConByMethodData().rebuildCallerInterceptors();
      }
      for (int i = 0; i < conCalledByConInterceptors.length; i++)
      {
         HashMap<String, TLongObjectHashMap> calledClasses = conCalledByConInterceptors[i];
         if (calledClasses == null) continue;
         for (Map.Entry<String, TLongObjectHashMap> entry : calledClasses.entrySet())
         {
            String cname = entry.getKey();
            TLongObjectHashMap calledMethods = entry.getValue();
            long[] calledKeys = calledMethods.keys();
            for (int j = 0; j < calledKeys.length; j++)
            {
               long calledHash = calledKeys[j];
               ArrayList<AdviceBinding> bindings = getConCalledByConBindings(i, cname, calledHash);
               bindConCalledByConInterceptorChain(bindings, i, cname, calledHash);
View Full Code Here

   }

   private ArrayList<AdviceBinding> getConstructorCallerBindings(int callingIndex, String cname, long calledHash)
   {
      HashMap<String, TLongObjectHashMap> calledClasses = methodCalledByConBindings[callingIndex];
      TLongObjectHashMap calledMethods = calledClasses.get(cname);
      return (ArrayList<AdviceBinding>) calledMethods.get(calledHash);
   }
View Full Code Here

   }

   private ArrayList<AdviceBinding> getConCalledByConBindings(int callingIndex, String cname, long calledHash)
   {
      HashMap<String, TLongObjectHashMap> calledClasses = conCalledByConBindings[callingIndex];
      TLongObjectHashMap calledMethods = calledClasses.get(cname);
      return (ArrayList<AdviceBinding>) calledMethods.get(calledHash);
   }
View Full Code Here

      if (callingCon == null)
      {
         callingCon = new HashMap<String, TLongObjectHashMap>();
         methodCalledByConBindings[callingIndex] = callingCon;
      }
      TLongObjectHashMap classMap = callingCon.get(calledClass);
      if (classMap == null)
      {
         classMap = new TLongObjectHashMap();
         callingCon.put(calledClass, classMap);
      }
      ArrayList<AdviceBinding> bindings = (ArrayList<AdviceBinding>) classMap.get(calledMethodHash);
      if (bindings == null)
      {
         bindings = new ArrayList<AdviceBinding>();
         classMap.put(calledMethodHash, bindings);
      }
   }
View Full Code Here

      if (callingCon == null)
      {
         callingCon = new HashMap<String, TLongObjectHashMap>();
         conCalledByConBindings[callingIndex] = callingCon;
      }
      TLongObjectHashMap classMap = callingCon.get(calledClass);
      if (classMap == null)
      {
         classMap = new TLongObjectHashMap();
         callingCon.put(calledClass, classMap);
      }
      ArrayList<AdviceBinding> bindings = (ArrayList<AdviceBinding>) classMap.get(calledConHash);
      if (bindings == null)
      {
         bindings = new ArrayList<AdviceBinding>();
         classMap.put(calledConHash, bindings);
      }
   }
View Full Code Here

      if (callingCon == null)
      {
         callingCon = new HashMap<String, TLongObjectHashMap>();
         methodCalledByConBindings[callingIndex] = callingCon;
      }
      TLongObjectHashMap classMap = callingCon.get(calledClass);
      if (classMap == null)
      {
         classMap = new TLongObjectHashMap();
         callingCon.put(calledClass, classMap);
      }
      ArrayList<AdviceBinding> bindings = (ArrayList<AdviceBinding>) classMap.get(calledMethodHash);
      boolean createdBindings = false;
      if (bindings == null)
      {
         bindings = new ArrayList<AdviceBinding>();
         classMap.put(calledMethodHash, bindings);
         createdBindings = true;
      }
      if (!bindings.contains(binding)) bindings.add(binding);

      // this is so that we can undeploy a caller
View Full Code Here

TOP

Related Classes of gnu.trove.TLongObjectHashMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.