blob: a718acc9019dd8d4d620a254fe084bd62c0fa86a [file] [log] [blame]
/*
* $Id: LuaType.java,v 1.1 2008/10/28 16:36:48 anaef Exp $
* See LICENSE.txt for license terms.
*/
package com.naef.jnlua;
/**
* Represents a Lua type.
*/
public enum LuaType {
// -- Values
/**
* Nil.
*/
NIL,
/**
* Boolean.
*/
BOOLEAN,
/**
* Light user data (pointer).
*/
LIGHTUSERDATA,
/**
* Number.
*/
NUMBER,
/**
* String.
*/
STRING,
/**
* Table.
*/
TABLE,
/**
* Function.
*/
FUNCTION,
/**
* User data.
*/
USERDATA,
/**
* Thread.
*/
THREAD;
// -- Properties
/**
* Returns the display text of this Lua type. The display text is the type
* name in lower case.
*
* @return the display text
*/
public String displayText() {
return toString().toLowerCase();
}
}