Qore Programming Language Reference Manual
0.9.3.1
|
Keyword Types
Type | Description |
Soft 1 | Keywords of this type cannot be used as static variable names or constant names but can be used as function or method names if they are followed immediately by an open parenthesis (with no whitespace between the keyword and the open parenthesis), and they can be referenced as unquoted object or hash member names only if they are immediately preceded by the . operator (again with no whitespace between the "." and the keyword): |
Soft 2 | Keywords of this type cannot be used as static variable names or constant names but can be used as function or method names if they are followed by an open parenthesis (whitespace is allowed between the keyword and the open parenthesis), and they can be referenced as unquoted object or hash member names if they are immediately preceded by the . operator (again with no whitespace between the "." and the keyword): |
Soft 3 | Keywords of this type be referenced as unquoted object or hash member names if preceded immediately by the "." operator, however they may not be used as function or class method names or static variable names or constant names |
Keywords
Keywords | Type | Description |
background | Soft 1 | for the background operator |
case | Soft 1 | used in switch statements |
chomp | Soft 1 | for the chomp operator |
class | Soft 1 | used when declaring classes |
delete | Soft 1 | for the delete operator |
exists | Soft 1 | for the exists operator |
final | Soft 2 | for final method declarations or final class declarations |
foldl | Soft 1 | for the foldl operator |
foldr | Soft 1 | for the foldr operator |
map | Soft 1 | for the map operator |
pop | Soft 1 | for the pop operator |
private | Soft 1 | class members, class methods, and static class variables can all be declared private to the class with this keyword, additionally classes can be privately inherited using this keyword as well |
public | Soft 1 | class members, class methods, and static class variables can all be declared public to the class with this keyword, additionally this keyword can be used when declaring a publically inherited class as well |
push | Soft 1 | for the push operator |
new | Soft 1 | for the new operator |
select | Soft 1 | for the select operator |
shift | Soft 1 | for the shift operator |
splice | Soft 1 | for the splice operator |
trim | Soft 1 | for the trim operator |
unshift | Soft 1 | for the unshift operator |
default | Soft 2 | used in switch statements |
static | Soft 2 | used when declaring static methods and static variables in a class |
break | Soft 3 | for the break statement |
catch | Soft 3 | used with try catch statements |
const | Soft 3 | used to declare constants and class constants |
continue | Soft 3 | for the continue statement |
do | Soft 3 | for the do statement |
else | Soft 3 | used with the if statement |
for | Soft 3 | for the for statement (not to be confused with the foreach list iterator statement) |
foreach | Soft 3 | for the foreach list iterator statement (not to be confused with the for statement) |
if | Soft 3 | for the if statement |
in | Soft 3 | used with the foreach list iterator statement and the find expression |
inherits | Soft 3 | used when declaring class inheritance |
instanceof | Soft 3 | for the instanceof operator |
namespace | Soft 3 | used when declaring namespaces |
my | Soft 3 | used when declaring local variables |
elements | Soft 3 | for the elements operator |
find | Soft 3 | for the find expression |
keys | Soft 3 | for the keys operator |
returns | Soft 3 | used when using the deprecated syntax for declaring method or function return types |
abstract | Soft 3 | This keyword is reserved for future implementation |
deprecated | Soft 3 | when declaring functions or methods as deprecated |
context | Soft 3 | for the context statement |
summarize | Soft 3 | for the summarize statement |
subcontext | Soft 3 | for the subcontext statement |
sortBy | Soft 3 | used with context, summarize, and subcontext statements |
sortDescendingBy | Soft 3 | used with context, summarize, and subcontext statements |
by | Soft 3 | used with summarize statements |
switch | Soft 3 | for the switch statement |
return | Soft 3 | for the return statement |
rethrow | Soft 3 | for the rethrow statement |
on_error | Soft 3 | for the on_error statement |
on_exit | Soft 3 | for the on_exit statement |
on_success | Soft 3 | for the on_success statement |
our | Soft 3 | used when declaring global variables |
sub | Soft 3 | used when declaring functions |
synchronized | Soft 3 | used when declaring synchronized functions or methods |
thread_exit | Soft 3 | for the thread_exit statement |
throw | Soft 3 | for the throw statements |
try | Soft 3 | for the try statements |
where | Soft 3 | used with context, summarize, and subcontext statements |
while | Soft 3 | for the while statement and used with the do statement |