JavaLanguage
classin packageklyn.code.java
public class JavaLanguage extends Object
└ JavaLanguage

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")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public static profile
profile() as LanguageProfile
Returns the shared singleton LanguageProfile for Java.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml