<< lib/java/javax/tools/Diagnostic.Kind.sleela SLeeLa Java SE/JDK 28 source envelope. Definition: Native SLeeLa source declaration for the Java type javax.tools.Diagnostic.Kind. The Java class name is retained exactly. The SLeeLa declaration is the source contract; Java behavior is supplied only through the conformance boundary. This is a nested Java type; the file keeps the binary name. Nested types are not yet resolved by the library loader (see JDK28-PROCEDURAL-IMPLEMENTATION.md). >> #sleela 3.0 material; class Kind { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 5362; String metaAuthor = "Oracle / OpenJDK"; String metaDate = "2026-11-10"; String metaCopyright = "GPLv2 with Classpath Exception (OpenJDK)"; String metaTrademark = "Java"; String metaCorporation = "Oracle Corporation"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-11-10"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "OpenJDK (JDK 28 API)"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } String javaType = "javax.tools.Diagnostic.Kind"; String typeName() { return javaType; } boolean available() { return javaType != ""; } String construct() { return "java.construct:" + javaType; } String invoke(String operation) { return "java.invoke:" + javaType + ":" + operation; } String invokeStatic(String operation) { return "java.static:" + javaType + ":" + operation; } < ---- BEGIN java declarations (generated by tools/jdk_api_declare.py) ---- > << Complete enum: one static final instance per constant (so identity and == hold for values / valueOf / the constants), with the java.lang.Enum behavior. values() and valueOf(name) are static, as in Java: Kind.valueOf(...), Kind.values(), and the constants are static final fields. >> static final Kind ERROR = new Kind("ERROR", 0); static final Kind WARNING = new Kind("WARNING", 1); static final Kind MANDATORY_WARNING = new Kind("MANDATORY_WARNING", 2); static final Kind NOTE = new Kind("NOTE", 3); static final Kind OTHER = new Kind("OTHER", 4); String enumName; int enumOrdinal; Kind(String name, int ordinal) { this.enumName = name; this.enumOrdinal = ordinal; } String name() { return this.enumName; } int ordinal() { return this.enumOrdinal; } String toString() { return this.enumName; } int compareTo(Kind o) { return this.enumOrdinal - o.enumOrdinal; } boolean equals(Any other) { return this == other; } int hashCode() { return this.enumOrdinal * 31 + 17; } public static Kind[] values() { Kind[] v = new Kind[5]; v[0] = ERROR; v[1] = WARNING; v[2] = MANDATORY_WARNING; v[3] = NOTE; v[4] = OTHER; return v; } public static Kind valueOf(String name) { if (name == null) { throw new NullPointerException("Name is null"); } if (name == "ERROR") { return ERROR; } if (name == "WARNING") { return WARNING; } if (name == "MANDATORY_WARNING") { return MANDATORY_WARNING; } if (name == "NOTE") { return NOTE; } if (name == "OTHER") { return OTHER; } throw new IllegalArgumentException("No enum constant javax.tools.Diagnostic.Kind." + name); } < ---- END java declarations ---- > }