view src/luan/LuanFunction.java @ 887:df84a1741687

make Connector reference to server explicit
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 23:59:56 -0600
parents 1a68fc55a80c
children 25746915a241
line wrap: on
line source

package luan;


public abstract class LuanFunction {

	public abstract Object call(LuanState luan,Object[] args) throws LuanException;

	public static final Object[] NOTHING = new Object[0];

	public final Object call(LuanState luan) throws LuanException {
		return call(luan,NOTHING);
	}

	@Override public String toString() {
		return "function: " + Integer.toHexString(hashCode());
	}

}