1 22 package org.jboss.aop.instrument; 23 24 import java.util.ArrayList ; 25 import java.util.Collection ; 26 27 import javassist.CtClass; 28 29 34 public class JoinpointStatusUpdate 35 { 36 39 public CtClass clazz; 40 41 44 public ClassJoinpoints newlyAdvisedJoinpoints; 45 46 49 public ClassJoinpoints newlyUnadvisedJoinpoints; 50 51 54 public boolean isEmpty() 55 { 56 return newlyAdvisedJoinpoints.isEmpty() && newlyUnadvisedJoinpoints.isEmpty(); 57 } 58 59 62 public static class ClassJoinpoints { 63 64 68 public Collection fieldReads; 69 70 74 public Collection fieldWrites; 75 76 80 public Collection constructorExecutions; 81 82 86 public Collection methodExecutions; 87 88 97 public ClassJoinpoints(int fields, int constructors, int methods) { 98 this.fieldReads = new ArrayList (fields); 99 this.fieldWrites = new ArrayList (fields); 100 this.constructorExecutions = new ArrayList (constructors); 101 this.methodExecutions = new ArrayList (methods); 102 } 103 104 107 public boolean isEmpty() 108 { 109 return fieldReads.isEmpty() && fieldWrites.isEmpty() && 110 constructorExecutions.isEmpty() && methodExecutions.isEmpty(); 111 } 112 } 113 } | Popular Tags |