Mercurial Hosting > luan
comparison lucene/src/luan/modules/lucene/LuceneWriter.java @ 411:23b99a5039b5
remove Luan.newTable()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 16:05:02 -0600 |
parents | cd2924a1052c |
children | 23a93c118042 |
comparison
equal
deleted
inserted
replaced
410:0d6098a29b3e | 411:23b99a5039b5 |
---|---|
75 private void add(LuanTable t,String method,Class<?>... parameterTypes) throws NoSuchMethodException { | 75 private void add(LuanTable t,String method,Class<?>... parameterTypes) throws NoSuchMethodException { |
76 t.put( method, new LuanJavaFunction(LuceneWriter.class.getMethod(method,parameterTypes),this) ); | 76 t.put( method, new LuanJavaFunction(LuceneWriter.class.getMethod(method,parameterTypes),this) ); |
77 } | 77 } |
78 | 78 |
79 LuanTable table() { | 79 LuanTable table() { |
80 LuanTable tbl = Luan.newTable(); | 80 LuanTable tbl = new LuanTable(); |
81 try { | 81 try { |
82 add( tbl, "save_document", LuanState.class, LuanTable.class ); | 82 add( tbl, "save_document", LuanState.class, LuanTable.class ); |
83 add( tbl, "delete_documents", LuanState.class, LuanTable.class ); | 83 add( tbl, "delete_documents", LuanState.class, LuanTable.class ); |
84 } catch(NoSuchMethodException e) { | 84 } catch(NoSuchMethodException e) { |
85 throw new RuntimeException(e); | 85 throw new RuntimeException(e); |