Mercurial Hosting > luan
comparison src/luan/LuanJavaFunction.java @ 1120:e8fc6712b468
luan Rpc uses luan.lib.rpc
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 07 Aug 2017 23:50:52 -0600 |
parents | b1f6dafa72fc |
children | 4cf541886663 |
comparison
equal
deleted
inserted
replaced
1119:87c674f3f6b7 | 1120:e8fc6712b468 |
---|---|
47 return "java-function: " + method; | 47 return "java-function: " + method; |
48 } | 48 } |
49 | 49 |
50 public int getParameterCount() { | 50 public int getParameterCount() { |
51 return argConverters.length; | 51 return argConverters.length; |
52 } | |
53 | |
54 public boolean isVarArgs() { | |
55 return method.isVarArgs(); | |
52 } | 56 } |
53 | 57 |
54 @Override public Object call(LuanState luan,Object[] args) throws LuanException { | 58 @Override public Object call(LuanState luan,Object[] args) throws LuanException { |
55 try { | 59 try { |
56 args = fixArgs(luan,args); | 60 args = fixArgs(luan,args); |