Package java.util

Examples of java.util.ArrayList.clone()


        // Normal successors. Add them to the queue of successors.
        InstructionContext[] succs = u.getSuccessors();
        for (int s=0; s<succs.length; s++){
          InstructionContext v = succs[s];
          if (v.execute(u.getOutFrame(oldchain), newchain, icv, ev)){
            icq.add(v, (ArrayList) newchain.clone());
          }
        }
      }// end "not a ret"

      // Exception Handlers. Add them to the queue of successors.
View Full Code Here


private synchronized ArrayList getClonedChangeListeners() {
  ArrayList listeners = this.changeListeners;
  if (listeners == null) {
    return null;
  }
  return (ArrayList) listeners.clone();
}
private static byte[] flagsToBytes(Integer flags){
  if(flags != null) {
    return flags.toString().getBytes();
  } else {
View Full Code Here

            registrations = new ArrayList();
            newListeners.put(listener, registrations);
         }
         else
         {
            registrations = (ArrayList) registrations.clone();
            newListeners.put(listener, registrations);
         }

         registrations.add(factory.create(listener, filter, handback));
View Full Code Here

            throw new ListenerNotFoundException("Listener not found listener=" + listener +
                                                " filter=" + filter + " handback=" + handback);

         HashMap newListeners = (HashMap) listeners.clone();

         registrations = (ArrayList) registrations.clone();
         registration = (ListenerRegistration) registrations.remove(index);
         if (registrations.isEmpty())
            newListeners.remove(listener);
         else
            newListeners.put(listener, registrations);
View Full Code Here

         {
            String currentRelationId = (String)i.next();
            ArrayList currentRoleNameList = (ArrayList)relationIdMap.get(currentRelationId);
            if (roleName == null)
            {
               result.put(currentRelationId, currentRoleNameList.clone());
            }
            else if (currentRoleNameList.contains(roleName))
            {
               ArrayList roleNameList = new ArrayList();
               roleNameList.add(roleName);
View Full Code Here

         // in the middle of notifications I don't care: here I clone the actual pairs
         ArrayList pairs = null;
         synchronized (this)
         {
            pairs = (ArrayList)listeners.get(listener);
            pairs = (ArrayList)pairs.clone();
         }

         if (trace) logger.trace("\tFilters - Handback for this listener: " + pairs);

         // Loop over the same listener that registered many times with different filter / handbacks
View Full Code Here

   protected ArrayList cloneClassLoaders()
   {
      ArrayList loaders = getClassLoaders();
      synchronized (loaders)
      {
         return (ArrayList)loaders.clone();
      }
   }

   protected ArrayList getClassLoaders()
   {
View Full Code Here

        if ( theSuccessor != (cfg.contextOf(jsr.physicalSuccessor())) ){
          throw new AssertionViolatedException("RET '"+u.getInstruction()+"' info inconsistent: jump back to '"+theSuccessor+"' or '"+cfg.contextOf(jsr.physicalSuccessor())+"'?");
        }
       
        if (theSuccessor.execute(u.getOutFrame(oldchain), newchain, icv, ev)){
          icq.add(theSuccessor, (ArrayList) newchain.clone());
        }
      }
      else{// "not a ret"
     
        // Normal successors. Add them to the queue of successors.
View Full Code Here

        // Normal successors. Add them to the queue of successors.
        InstructionContext[] succs = u.getSuccessors();
        for (int s=0; s<succs.length; s++){
          InstructionContext v = succs[s];
          if (v.execute(u.getOutFrame(oldchain), newchain, icv, ev)){
            icq.add(v, (ArrayList) newchain.clone());
          }
        }
      }// end "not a ret"

      // Exception Handlers. Add them to the queue of successors.
View Full Code Here

                ReturnaddressType t = (ReturnaddressType)u.getOutFrame(oldchain).getLocals().get(ret.getIndex());
                InstructionContext theSuccessor = cfg.contextOf(t.getTarget());

                if (theSuccessor.execute(u.getOutFrame(oldchain), newchain, icv, ev)) {
                    ics.add(theSuccessor);
                    ecs.add(newchain.clone());
                }
            } else { // "not a ret"
                // Normal successors. Add them to the queue of successors.
                InstructionContext[] succs = u.getSuccessors();
                for (int s = 0; s < succs.length; s++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.