comparison src/luan/LuanJavaFunction.java @ 60:a68ccb7aaa9c

implement setting java field values git-svn-id: https://luan-java.googlecode.com/svn/trunk@61 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 07 Jan 2013 05:41:59 +0000
parents 19ca9c4c6c7f
children 177cfdc2bdb3
comparison
equal deleted inserted replaced
59:5c9cadd0acce 60:a68ccb7aaa9c
36 Class<?>[] paramTypes = method.getParameterTypes(); 36 Class<?>[] paramTypes = method.getParameterTypes();
37 this.varArgCls = paramTypes[paramTypes.length-1].getComponentType(); 37 this.varArgCls = paramTypes[paramTypes.length-1].getComponentType();
38 } else { 38 } else {
39 this.varArgCls = null; 39 this.varArgCls = null;
40 } 40 }
41 }
42
43 @Override public String toString() {
44 return "java-function: " + method;
41 } 45 }
42 46
43 public Class<?>[] getParameterTypes() { 47 public Class<?>[] getParameterTypes() {
44 return method.getParameterTypes(); 48 return method.getParameterTypes();
45 } 49 }