view core/src/luan/impl/SetUpVar.java @ 538:919b9410008e

let lucene.query.term take field and value as arguments
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 01 Jun 2015 00:51:44 -0600
parents 3dcb0f9bee82
children
line wrap: on
line source

package luan.impl;


final class SetUpVar implements Settable {
	private final int index;

	SetUpVar(int index) {
		this.index = index;
	}

	@Override public void set(LuanStateImpl luan,Object value) {
		luan.closure().upValues()[index].set(value);
	}
}