Skip to main content

Module keywords

Module keywords 

Source
Expand description

Java-17 keywords (incl. restricted identifiers like record, sealed, var, yield).

Source: JLS 17 §3.9 + §3.8 (restricted identifiers).

When an IDL identifier hits a Java keyword, the generator cannot avoid it via @-escape (Java has no such syntax). Instead the name is given an underscore suffix (classclass_).

Functions§

is_reserved
Checks whether an identifier is a Java keyword.
sanitize_identifier
Sanitizes an IDL identifier for Java.