view src/luan/LuanElement.java @ 136:7e160d2f6d9c

update HttpLib, untested git-svn-id: https://luan-java.googlecode.com/svn/trunk@137 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 11 Jun 2014 09:33:02 +0000
parents 1f8b6edc2b08
children
line wrap: on
line source

package luan;


public abstract class LuanElement {

	final String toString(String fnName) {
		String s = location();
		if( fnName != null )
			s += ": in function '" + fnName + "'";
		return s;
	}

	abstract String location();

	public static final LuanElement JAVA = new LuanElement(){
		@Override String location() {
			return "Java";
		}
	};
}