Keywords
break
Exit a loop immediately.
See: Break and Continue
callback
Curries a function call. Useful for passing functions.
See: callback
case
Specifies an entry in a switch statement.
See: Switch
cast
Attempt to get a value as a different type. Can also be used to indicate that a class' field can be dynamically overridden.
See: Type Casting, Unsafe Cast, Classes
catch
Declares code that is called when an exception occurs.
See: Exceptions
class
Declares a class.
See: Object Oriented Programming
continue
Skip to the next loop iteration.
See: Break and Continue
default
If used in a switch statement, default is used to indicate a case that will be executed if none of the other cases were executed. If used in a property definition, default indicates that the classic field access are available.
See: Switch, Properties
do
Declares a "do-while" loop.do expr-loop while( expr-cond );
See: While
dynamic
Used in a property definition to indicate that access will be set at runtime. Also used as a flag in a class variable or method declaration to indicate that the field may be dynamically rebound.
See: Properties, Classes
else
Declares a block to be executed if the condition is not true.if( expr-cond ) expr-1 [else expr-2]
See: If
enum
Declares an enum.
See: Enums
extends
Declares a class to be a subclass of another class.
See: Class Inheritance
extern
Indicates that the class is already defined.
false
A boolean value that evaluates to false.
See: Constants
for
Declares a "for" loop.for( variable in iterable ) expr-loop;
See: For
function
Declares a local function or method of a class.
See: Local Function, Classes
here
Depreciated In 2.07
Expands to a haxe.PosInfos structure.
See: here
if
Declares a block to be executed if a condition is true.if( expr-cond ) expr-1 [else expr-2]
See: If
implements
Declares the interfaces implemented by a class.
See: Class Inheritance
import
Indicates that the class references a class from a different package is reference from the file.
See: Imports
in
Part of the syntax of the "for" loop.
See: For
inline
Indicates that the compiler can speed up the code by replacing references to a function or static variable with the method body or variable's value, respectively.
See: Inline
interface
Declares an interface.
See: Object Oriented Programming
never
Used in a property definition to indicate that access is not available.
See: Properties
new
Creates an object by calling a class' constructor.
See: Constructor
null
If used in a comparison or assignment, null is variable without a value. If used in a property definition, null indicates that access is only allowed from within the class.
See: Constants, Properties
override
Indicates that a class' field is overriding its parent class.
See: Classes
package
Packages can be used to group related classes.
See: Imports
private
Indicates that access to field is only allowed from the class.
See: Classes
public
Indicates that a field's access not restricted.
See: Classes
return
Exit a function before the end or return a value from a function.
See: Return
static
Declares a class member.
See: Object Oriented Programming
super
Used by a class to call a method from its superclass.
See: Class Inheritance
switch
Equivalent to multiple if...else if... tests on the same value.
See: Switch
this
Used by a class to refer to the current object.
See: Object Oriented Programming
throw
Throws an exception.
See: Exceptions
trace
A global function to ease debugging. Outputs the given variable as a String.trace("Will be shown when compiled for debugging");
See: here
true
A boolean value that evaluates to true.
See: Constants
try
A try block is code where exception handlers can be defined.
See: Exceptions
typedef
Gives a name to an anonymous type.
See: Typedef
untyped
Prevent type checking for a block of code.
See: Untyped
using
Allows an static functions to be called as if they were an object's methods.
See: using and callback
var
Declares a local or class variable.
See: Local Variables, Classes
while
Declares a "while" loop.while( expr-cond ) expr-loop;
See: While
version #10210, modified 2011-02-21 13:10:26 by JLM