Home /Modules/java/Doclet.Option.Kind.sleela

Doclet.Option.Kind.sleela

lib/java/jdk-25/jdk/javadoc/doclet/Doclet.Option.Kind.sleela · 95 line(s) · sleela

<< lib/java/jdk/javadoc/doclet/Doclet.Option.Kind.sleela
   SLeeLa Java SE/JDK 28 source envelope.
   Definition: Native SLeeLa source declaration for the Java type jdk.javadoc.doclet.Doclet.Option.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 = 5367;
  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 | <nation> | 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 = "jdk.javadoc.doclet.Doclet.Option.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 EXTENDED = new Kind("EXTENDED", 0);
  static final Kind STANDARD = new Kind("STANDARD", 1);
  static final Kind OTHER = new Kind("OTHER", 2);
  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[3];
    v[0] = EXTENDED;
    v[1] = STANDARD;
    v[2] = OTHER;
    return v;
  }
  public static Kind valueOf(String name) {
    if (name == null) { throw new NullPointerException("Name is null"); }
    if (name == "EXTENDED") { return EXTENDED; }
    if (name == "STANDARD") { return STANDARD; }
    if (name == "OTHER") { return OTHER; }
    throw new IllegalArgumentException("No enum constant jdk.javadoc.doclet.Doclet.Option.Kind." + name);
  }
  < ---- END java declarations ---- >
}