1 17 18 package org.objectweb.jac.aspects.gui; 19 20 import java.util.Arrays ; 21 import org.objectweb.jac.core.rtti.AbstractMethodItem; 22 23 26 public class InvokeEvent extends SubstanceEvent { 27 public InvokeEvent(View source, 28 Object substance, AbstractMethodItem method, 29 Object [] parameters) { 30 super(source,substance); 31 this.method = method; 32 this.parameters = parameters; 33 } 34 35 public InvokeEvent(View source, 36 Object substance, AbstractMethodItem method) { 37 super(source,substance); 38 this.method = method; 39 } 40 41 42 AbstractMethodItem method; 43 public AbstractMethodItem getMethod() { 44 return method; 45 } 46 public void setMethod(AbstractMethodItem newMethod) { 47 this.method = newMethod; 48 } 49 50 Object [] parameters; 51 public Object [] getParameters() { 52 return parameters; 53 } 54 public void setParameters(Object [] newParameters) { 55 this.parameters = newParameters; 56 } 57 58 public String toString() { 59 return "InvokeEvent{source="+source+", "+substance+"."+method.getLongName()+ 60 " with "+(parameters!=null?Arrays.asList(parameters):null)+"}"; 61 } 62 } 63 | Popular Tags |