EnumValue
Available on all platforms
An abstract type that represents any enum value. See Type
for the Haxe Reflection API.
See also:
Methods
match(pattern:Dynamic):Bool
Matches enum instance e
against pattern pattern
, returning true
if matching succeeded and false
otherwise.
Example usage:
if (e.match(pattern)) {
// codeIfTrue
} else {
// codeIfFalse
}
This is equivalent to the following code:
switch (e) {
case pattern:
// codeIfTrue
case _:
// codeIfFalse
}
This method is implemented in the compiler. This definition exists only for documentation.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/EnumValue.html