view core/src/luan/impl/SetLocalVar.java @ 618:5e495e4e560b

add lucene indexed_only_fields
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 01 Jan 2016 01:24:10 -0700
parents e91e476186c7
children
line wrap: on
line source

package luan.impl;


final class SetLocalVar implements Settable {
	private final int index;

	SetLocalVar(int index) {
		if( index < 0 )  throw new RuntimeException();
		this.index = index;
	}

	@Override public void set(LuanStateImpl luan,Object value) {
		luan.stackSet( index, value );
	}
}