Planet JFX
Advertisement

Official source: JavaFX Language Reference "List of Reserved Words"

Interpreter Reserved Words[]

From the source code (com.sun.tools.javafx.antlr.v4lexer.g), reserved words in the interpreter, as of January 2009:

abstract
after
and
as
assert
at
attribute
before
bind
bound
break
catch
class
continue
def
delete
else
exclusive
extends
false
finally
first
for
from
function
if
import
indexof
in
init
insert
instanceof
into
inverse
last
lazy
mod
new
not
null
on
or
override
package
postinit
private
protected
public-init
public
public-read
replace
return
reverse
sizeof
static
step
super
then
this
throw
trigger
true
try
tween
typeof
var
where
while
with

Some keywords seem unused (lazy, typeof...).
To access Java members and fields whose names are JavaFX keywords, use literal variables: string.<<replace>>('a', 'z');

Advertisement