1 18 19 package org.objectweb.jac.core; 20 21 import java.io.Serializable ; 22 23 27 28 public class ConfigMethod implements Serializable , Cloneable { 29 30 String methodName; 31 Object [] args; 32 String lineNumber; 33 public ConfigMethod(String methodName, Object [] args, String lineNumber) { 34 this.methodName = methodName; 35 this.args = args; 36 this.lineNumber = lineNumber; 37 } 38 public ConfigMethod(String methodName, Object [] args) { 39 this.methodName = methodName; 40 this.args = args; 41 this.lineNumber = "???:???"; 42 } 43 public String getMethod() { 44 return methodName; 45 } 46 public Object [] getArgs() { 47 Object [] result = new Object [args.length]; 48 System.arraycopy(args,0,result,0,args.length); 49 return result; 50 } 51 public void setArgs(Object [] args) { 52 this.args = args; 53 } 54 public String getLineNumber() { 55 return lineNumber; 56 } 57 public String toString() { 58 return "ConfigMethod("+methodName+","+java.util.Arrays.asList(args)+")"; 59 } 60 public Object clone() throws CloneNotSupportedException { 61 return super.clone(); 62 } 63 } 64 | Popular Tags |