Mercurial Hosting > luan
comparison lucene/src/luan/modules/lucene/LuceneSearcher.java @ 411:23b99a5039b5
remove Luan.newTable()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 16:05:02 -0600 |
parents | d34be4588556 |
children | dae264ad6a7b |
comparison
equal
deleted
inserted
replaced
410:0d6098a29b3e | 411:23b99a5039b5 |
---|---|
139 private void add(LuanTable t,String method,Class<?>... parameterTypes) throws NoSuchMethodException { | 139 private void add(LuanTable t,String method,Class<?>... parameterTypes) throws NoSuchMethodException { |
140 t.put( method, new LuanJavaFunction(LuceneSearcher.class.getMethod(method,parameterTypes),this) ); | 140 t.put( method, new LuanJavaFunction(LuceneSearcher.class.getMethod(method,parameterTypes),this) ); |
141 } | 141 } |
142 | 142 |
143 LuanTable table() { | 143 LuanTable table() { |
144 LuanTable tbl = Luan.newTable(); | 144 LuanTable tbl = new LuanTable(); |
145 try { | 145 try { |
146 add( tbl, "search", LuanState.class, Object.class, Object.class, Sort.class ); | 146 add( tbl, "search", LuanState.class, Object.class, Object.class, Sort.class ); |
147 } catch(NoSuchMethodException e) { | 147 } catch(NoSuchMethodException e) { |
148 throw new RuntimeException(e); | 148 throw new RuntimeException(e); |
149 } | 149 } |