Qore Programming Language Reference Manual 2.2.1
Loading...
Searching...
No Matches
Keywords

Keyword Types

TypeDescription
Soft 1Keywords 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 2Keywords 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 3Keywords 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

KeywordsTypeDescription
abstractSoft 3Used to declare abstract methods in classes
backgroundSoft 1for the background operator
breakSoft 3for the break statement
bySoft 3used with summarize statements
caseSoft 1used in switch statements
catchSoft 3used with try catch statements
chompSoft 1for the chomp operator
classSoft 1used when declaring classes
constSoft 3used to declare constants and class constants
contextSoft 3for the context statement
continueSoft 3for the continue statement
defaultSoft 2used in switch statements
deleteSoft 1for the delete operator
deprecatedSoft 3when declaring functions or methods as deprecated
doSoft 3for the do statement
elementsSoft 3for the elements operator
elseSoft 3used with the if statement
existsSoft 1for the exists operator
FalseSoft 3represents a boolean false value
findSoft 3for the find expression
finalSoft 2for final method declarations or final class declarations
foldlSoft 1for the foldl operator
foldrSoft 1for the foldr operator
forSoft 3for the for statement (not to be confused with the foreach list iterator statement)
foreachSoft 3for the foreach list iterator statement (not to be confused with the for statement)
keysSoft 3for the keys operator
ifSoft 3for the if statement
in Soft 3used with the foreach list iterator statement and the find expression
inheritsSoft 3used when declaring class inheritance
instanceofSoft 3for the instanceof operator
mapSoft 1for the map operator
mySoft 3used when declaring local variables
namespaceSoft 3used when declaring namespaces
on_errorSoft 3for the on_error statement
on_exitSoft 3for the on_exit statement
on_successSoft 3for the on_success statement
ourSoft 3used when declaring global variables
popSoft 1for the pop operator
private Soft 1class 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 Hardclass 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 Hardclass 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 1class 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
pushSoft 1for the push operator
newSoft 1for the new operator
NOTHINGSoft 3represents no value
NULLSoft 3represents an SQL NULL value
rethrowSoft 3for the rethrow statement
returnSoft 3for the return statement
returns Soft 3used when using the deprecated syntax for declaring method or function return types (see %allow-returns)
selectSoft 1for the select operator
shiftSoft 1for the shift operator
sortBy Soft 3used with context, summarize, and subcontext statements
sortDescendingBy Soft 3used with context, summarize, and subcontext statements
spliceSoft 1for the splice operator
static Soft 2used when declaring static methods and static variables in a class
subSoft 3used when declaring functions
subcontextSoft 3for the subcontext statement
summarizeSoft 3for the summarize statement
switchSoft 3for the switch statement
synchronizedSoft 3used when declaring synchronized functions or methods
thread_exitSoft 3for the thread_exit statement
thread_localSoft 3for thread-local variable declarations
throwSoft 3for the throw statements
trimSoft 1for the trim operator
TrueSoft 3represents a boolean true value
trySoft 3for the try statements
unshiftSoft 1for the unshift operator
where Soft 3used with context, summarize, and subcontext statements
whileSoft 3for the while statement and used with the do statement