/* ---------------------------------------------------------------------------- * EAOP 1.0, 2002-12-19 * (c) 2002 Remi Douence, Mario Sudholt; OBASCO group; EMN/INRIA; France * THIS SOFTWARE IS PROVIDED AS IS AND WITHOUT ANY WARRANTY -------------------------------------------------------------------------- */ import fr.emn.info.eaop.instrumentation.*; import recoder.abstraction.*; import recoder.java.declaration.*; public class TestInstrumentation extends SelectiveInstrumentation { public TestInstrumentation() { files = new String[3]; files[0] = "Javazon.java"; files[1] = "Aspects.java"; files[2] = "Test.java"; } protected boolean checkMethodOrConstructor(MethodDeclaration md) { this.md = md; // store method declaration for called methods return (matchMethodName("checkout") || matchMethodName("ship") || matchMethodName("Customer") || matchMethodName("computeDiscount") ) && !isSystemMethodOrConstructor(); } protected boolean checkAspect(TypeDeclaration td) { this.td = td; return matchClassName("Checkout"); } }