public static enum JavaReflector.Metamethod extends Enum<JavaReflector.Metamethod>
Enum Constant and Description |
---|
ADD
__add metamethod. |
CALL
__call metamethod. |
CONCAT
__concat metamethod. |
DIV
__div metamethod. |
EQ
__eq metamethod. |
INDEX
__index metamethod. |
JAVAFIELDS
__javafields metamethod. |
JAVAMETHODS
__javamethods metamethod. |
JAVAPROPERTIES
__javaproperties metamethod. |
LE
__le metamethod. |
LEN
__len metamethod. |
LT
__lt metamethod. |
MOD
__mod metamethod. |
MUL
__mul metamethod. |
NEWINDEX
__newindex metamethod. |
POW
__pow metamethod. |
SUB
__sub metamethod. |
TOSTRING
__tostring metamethod. |
UNM
__unm metamethod. |
Modifier and Type | Method and Description |
---|---|
String |
getMetamethodName()
Returns the Lua metamethod name.
|
static JavaReflector.Metamethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaReflector.Metamethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaReflector.Metamethod INDEX
__index
metamethod.public static final JavaReflector.Metamethod NEWINDEX
__newindex
metamethod.public static final JavaReflector.Metamethod LEN
__len
metamethod.public static final JavaReflector.Metamethod EQ
__eq
metamethod.public static final JavaReflector.Metamethod LT
__lt
metamethod.public static final JavaReflector.Metamethod LE
__le
metamethod.public static final JavaReflector.Metamethod UNM
__unm
metamethod.public static final JavaReflector.Metamethod ADD
__add
metamethod.public static final JavaReflector.Metamethod SUB
__sub
metamethod.public static final JavaReflector.Metamethod MUL
__mul
metamethod.public static final JavaReflector.Metamethod DIV
__div
metamethod.public static final JavaReflector.Metamethod MOD
__mod
metamethod.public static final JavaReflector.Metamethod POW
__pow
metamethod.public static final JavaReflector.Metamethod CONCAT
__concat
metamethod.public static final JavaReflector.Metamethod CALL
__call
metamethod.public static final JavaReflector.Metamethod TOSTRING
__tostring
metamethod.public static final JavaReflector.Metamethod JAVAFIELDS
__javafields
metamethod.public static final JavaReflector.Metamethod JAVAMETHODS
__javamethods
metamethod.public static final JavaReflector.Metamethod JAVAPROPERTIES
__javaproperties
metamethod.public static JavaReflector.Metamethod[] values()
for (JavaReflector.Metamethod c : JavaReflector.Metamethod.values()) System.out.println(c);
public static JavaReflector.Metamethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMetamethodName()