Mercurial Hosting > luan
comparison core/src/luan/modules/StringLuan.java @ 221:ec016471c6eb
make LuanTable an interface
git-svn-id: https://luan-java.googlecode.com/svn/trunk@222 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 17 Jul 2014 07:49:26 +0000 |
parents | 5ba136769034 |
children | 58752e3e4c5c |
comparison
equal
deleted
inserted
replaced
220:61afe2a1ce96 | 221:ec016471c6eb |
---|---|
13 | 13 |
14 public final class StringLuan { | 14 public final class StringLuan { |
15 | 15 |
16 public static final LuanFunction LOADER = new LuanFunction() { | 16 public static final LuanFunction LOADER = new LuanFunction() { |
17 @Override public Object call(LuanState luan,Object[] args) { | 17 @Override public Object call(LuanState luan,Object[] args) { |
18 LuanTable module = new LuanTable(); | 18 LuanTable module = Luan.newTable(); |
19 try { | 19 try { |
20 add( module, "to_binary", String.class ); | 20 add( module, "to_binary", String.class ); |
21 add( module, "to_integers", String.class ); | 21 add( module, "to_integers", String.class ); |
22 add( module, "from_integers", new int[0].getClass() ); | 22 add( module, "from_integers", new int[0].getClass() ); |
23 add( module, "find", String.class, String.class, Integer.class, Boolean.class ); | 23 add( module, "find", String.class, String.class, Integer.class, Boolean.class ); |