Qore Programming Language Reference Manual 2.0.0
|
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 |
abstract | Soft 3 | Used to declare abstract methods in classes |
background | Soft 1 | for the background operator |
break | Soft 3 | for the break statement |
by | Soft 3 | used with summarize statements |
case | Soft 1 | used in switch statements |
catch | Soft 3 | used with try catch statements |
chomp | Soft 1 | for the chomp operator |
class | Soft 1 | used when declaring classes |
const | Soft 3 | used to declare constants and class constants |
context | Soft 3 | for the context statement |
continue | Soft 3 | for the continue statement |
default | Soft 2 | used in switch statements |
delete | Soft 1 | for the delete operator |
deprecated | Soft 3 | when declaring functions or methods as deprecated |
do | Soft 3 | for the do statement |
elements | Soft 3 | for the elements operator |
else | Soft 3 | used with the if statement |
exists | Soft 1 | for the exists operator |
False | Soft 3 | represents a boolean false value |
find | Soft 3 | for the find expression |
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 |
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) |
keys | Soft 3 | for the keys operator |
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 |
map | Soft 1 | for the map operator |
my | Soft 3 | used when declaring local variables |
namespace | Soft 3 | used when declaring namespaces |
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 |
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 |
private:hierarchy | Hard | 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 |
private:internal | Hard | 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 |
NOTHING | Soft 3 | represents no value |
NULL | Soft 3 | represents an SQL NULL value |
rethrow | Soft 3 | for the rethrow statement |
return | Soft 3 | for the return statement |
returns | Soft 3 | used when using the deprecated syntax for declaring method or function return types (see %allow-returns) |
select | Soft 1 | for the select operator |
shift | Soft 1 | for the shift operator |
sortBy | Soft 3 | used with context, summarize, and subcontext statements |
sortDescendingBy | Soft 3 | used with context, summarize, and subcontext statements |
splice | Soft 1 | for the splice operator |
static | Soft 2 | used when declaring static methods and static variables in a class |
sub | Soft 3 | used when declaring functions |
subcontext | Soft 3 | for the subcontext statement |
summarize | Soft 3 | for the summarize statement |
switch | Soft 3 | for the switch statement |
synchronized | Soft 3 | used when declaring synchronized functions or methods |
thread_exit | Soft 3 | for the thread_exit statement |
thread_local | Soft 3 | for thread-local variable declarations |
throw | Soft 3 | for the throw statements |
trim | Soft 1 | for the trim operator |
True | Soft 3 | represents a boolean true value |
try | Soft 3 | for the try statements |
unshift | Soft 1 | for the unshift operator |
where | Soft 3 | used with context, summarize, and subcontext statements |
while | Soft 3 | for the while statement and used with the do statement |