view src/luan/LuanFunction.java @ 826:6ebf86e4d2ca

remove HttpContent
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 14 Sep 2016 18:51:34 -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());
	}

}