1 17 18 19 package org.objectweb.jac.samples.solitaire.naming; 20 import org.objectweb.jac.aspects.naming.*; 21 import org.objectweb.jac.lib.java.util.*; 22 23 import org.objectweb.jac.core.*; 24 25 31 32 39 40 public class SolitaireNamingAC extends NamingAC { 41 int count = 0; 42 58 59 public String generateName ( Object object ) { 60 if (object instanceof Vector) { 61 if (method().equals("createChildren")) { 62 return super.generateName(object); 63 } else { 64 System.out.println("dans GenerateName " + count + " : " + method()); 65 return "mainVector" + count++; 66 } 67 } else { 68 return super.generateName(object); 69 } 70 } 71 } 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | Popular Tags |