Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

The following words are reserved in Groovy:

Code Block
none
none
abstract
as
assert
boolean
break
byte
case
catch
char
class
const
continue
def
default
do
double
else
enum
extends
false
final
finally
float
for
goto
if
implements
import
in
instanceof
int
interface
long
native
new
null
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
threadsafe
throw
throws
transient
true
try
void
volatile
while

Modifiers

The following words (included in the full list above) can be used as modifiers:

Code Block
none
none
abstract, final, native, private, protected, public, static, 
strictfp, synchronized, threadsafe, transient, volatile

This is the same as in Java.

Type declarations

The following words (included in the full list above) can be used to start type delcarations:

Code Block
none
none
class, enum, interface

Property names

The following reserved words (included in the full list above) are allowed as property names:

Code Block
none
none
as, catch, class, def, default, do, else, finally, for, goto, if, in, static, switch, try, while