1 24 25 package org.aspectj.compiler.crosscuts.joinpoints; 26 27 import org.aspectj.compiler.crosscuts.ast.*; 28 import org.aspectj.compiler.base.ast.*; 29 30 import org.aspectj.compiler.base.JavaCompiler; 31 32 import java.util.*; 33 34 36 public class EachObjectPlan extends JpPlan { 37 private PerObject perObject; 38 JpPlan innerPlan; 39 40 public EachObjectPlan(JpPlan innerPlan, PerObject perObject) { 41 super(innerPlan.joinPoint); 42 43 this.perObject = perObject; 44 this.innerPlan = innerPlan; 45 } 46 47 public int getPreSortOrder() { return EACHOBJECT; } 48 49 public String toString() { 50 return "perobject" + super.toString(); 51 } 52 53 public void wrapJoinPoint(JoinPoint jp) { 54 jp.setStmts(wrapCheckAndSet(jp, jp.getStmts())); 55 } 56 57 public Stmts wrapCheckAndSet(JoinPoint jp, Stmts stmts) { 58 return perObject.wrapCheckAndSet(innerPlan, jp, stmts); 59 } 60 } 61 | Popular Tags |