public class JavaLanguage extends Object
Canonical LanguageProfile factory and vocabulary definitions for the Java language (.java).
Includes Java 8–21 keywords (record, sealed, permits, var, yield, when), standard primitive and JDK core types, Javadoc comments, and text blocks ("""...""").
import klyn.code.java
profile = JavaLanguage.profile()
assert profile.id == "java"
assert profile.isKeyword("synchronized")
assert profile.isType("boolean")| Modifier and Type | Member | Description |
|---|---|---|
| public static | profileprofile() as LanguageProfile |
Returns the shared singleton LanguageProfile for Java. |