view core/src/luan/LuanElement.java @ 286:91be4027b2a8

Improve HTML of some tools. git-svn-id: https://luan-java.googlecode.com/svn/trunk@287 21e917c8-12df-6dd8-5cb6-c86387c605b9
author hugo.tech@gmail.com <hugo.tech@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 03 Dec 2014 02:26:19 +0000
parents 3dcb0f9bee82
children b48cfa14ba60
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";
		}
	};
}