Package ch.ethz.prose.engine

Examples of ch.ethz.prose.engine.JoinPointRequest


    if (getSpecializer() == null)
      return cr;

    Iterator i = cr.iterator();
    while (i.hasNext()) {
      JoinPointRequest jpr = (JoinPointRequest)i.next();
      if (getSpecializer().isSpecialRequest(jpr))
        result.add(jpr);
    }

    return result;
View Full Code Here


      return result;
    }

    for(int i=0; i<methArray.length; i++) {
      Class[] params = methArray[i].getParameterTypes();
      JoinPointRequest crtRequest;

      crtRequest = requestFactory.createJoinPointRequest(MethodEntryJoinPoint.KIND,methArray[i]);
      if (mcutSpecializer.isSpecialRequest(crtRequest))
        result.add(crtRequest);
View Full Code Here

      return result;
    }

    for (int i = 0; i < methArray.length; i++) {
      Class[] params = methArray[i].getParameterTypes();
      JoinPointRequest crtRequest;

      crtRequest = requestFactory.createJoinPointRequest(MethodRedefineJoinPoint.KIND, methArray[i]);
      if (mcutSpecializer.isSpecialRequest(crtRequest))
        result.add(crtRequest);
    }
View Full Code Here

  public void _testRegisterListener() throws Exception {
    try {
      Iterator i1 = testExtension.c1.createRequest().iterator();
      while (i1.hasNext()) {
        JoinPointRequest crtReq = (JoinPointRequest)(i1.next());

        ProseSystem.getAspectManager().getJoinPointManager().registerListener(testExtension.c1,crtReq);
      }

      i1 = testExtension.c2.createRequest().iterator();
      while (i1.hasNext()) {
        JoinPointRequest crtReq = (JoinPointRequest)(i1.next());
        ProseSystem.getAspectManager().getJoinPointManager().registerListener(testExtension.c1,crtReq);
      }
    }
    catch (Exception e) {
      e.printStackTrace();
View Full Code Here

      return result;
    }

    for(int i=0; i<constructorArray.length; i++) {
      Class[] params = constructorArray[i].getParameterTypes();
      JoinPointRequest crtRequest;

      crtRequest = requestFactory.createJoinPointRequest(ConstructorJoinPoint.KIND,constructorArray[i]);
      if (ccutSpecializer.isSpecialRequest(crtRequest))
        result.add(crtRequest);
    }
View Full Code Here

          Crosscut crtCrosscut = (Crosscut)j.next();
          Iterator k =  jpMgr.getJoinpoints(crtCrosscut).iterator();
          CrosscutSurrogate cs = new CrosscutSurrogate(as,crtCrosscut);
          if (!k.hasNext()) result.add(createTuple(as,cs,null,selectFields));
          while (k.hasNext()) {
            JoinPointRequest crtJpr = (JoinPointRequest)k.next();
            result.add(createTuple(as,cs,crtJpr,selectFields));
          }

        }
      }
View Full Code Here

        Crosscut crtCrosscut = reconstructCrosscut(cs);
        Iterator k =  jpMgr.getJoinpoints(crtCrosscut).iterator();
        if (!k.hasNext()) result.add(createTuple(as,cs,null,selectFields));
        while (k.hasNext()) {
          JoinPointRequest crtJpr = (JoinPointRequest)k.next();
          result.add(createTuple(as,cs,crtJpr,selectFields));
        }
      }
      catch (ClassNotFoundException e) {
        // The following exception are CAUGHT and not propagated. The
View Full Code Here

    HashSet result = new HashSet();
    Iterator i = new HashSet(jpList).iterator();
    while (i.hasNext()) {
      try {
        JoinPointRequestSurrogate jprs = (JoinPointRequestSurrogate)i.next();
        JoinPointRequest jpr = reconstructRequest(jprs);
        Iterator j  = jpMgr.getCrosscuts(jpr).iterator();
        while (j.hasNext()) {
          Crosscut crtCrosscut = (Crosscut)j.next();
          Aspect crtAspect   = crtCrosscut.getOwner();
          result.add(createTuple(crtAspect,crtCrosscut,jprs,selectFields));
View Full Code Here

        crtRequest = crtCrosscut.createRequest(cls);

      Iterator j = crtRequest.iterator();
      while (j.hasNext()) {
        //System.out.println("LocalAspectManager - crtCrosscut.iterator = " + crtRequest.toString());
        JoinPointRequest crtJPR = (JoinPointRequest)(j.next());
        jpm.registerListener(crtCrosscut,crtJPR);
      }

      if ( (crtCrosscut instanceof Insertable) && cls == null)
        ((Insertable)crtCrosscut).insertionAction(false);
View Full Code Here

TOP

Related Classes of ch.ethz.prose.engine.JoinPointRequest

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.