Home /Modules/java/ThreadReference.sleela

ThreadReference.sleela

lib/java/jdk-25/com/sun/jdi/ThreadReference.sleela · 96 line(s) · sleela

<< lib/java/com/sun/jdi/ThreadReference.sleela
   SLeeLa Java SE/JDK 28 source envelope.
   Definition: Native SLeeLa source declaration for the Java type com.sun.jdi.ThreadReference.

   The Java class name is retained exactly. The SLeeLa declaration is the source
   contract; Java behavior is supplied only through the conformance boundary. >>
#sleela 3.0
material;

class ThreadReference {
  < ---- 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 = 9107;
  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 = "com.sun.jdi.ThreadReference";
  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) ---- >
  < constants and static fields (values reflected from the JDK) >
  static final int THREAD_STATUS_UNKNOWN = -1;
  static final int THREAD_STATUS_ZOMBIE = 0;
  static final int THREAD_STATUS_RUNNING = 1;
  static final int THREAD_STATUS_SLEEPING = 2;
  static final int THREAD_STATUS_MONITOR = 3;
  static final int THREAD_STATUS_WAIT = 4;
  static final int THREAD_STATUS_NOT_STARTED = 5;
  < ---- END java declarations ---- >

  < ---- BEGIN java signatures (generated by tools/jdk_api_signatures.py) ---- >
  << Exact Java signatures (from the JDK). A method body that is not yet
     SLeeLa logic throws: AbstractMethodError for an abstract method, else
     UnsupportedOperationException naming the Java signature. >>
  public abstract java.lang.String name() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.name()"); }
  public abstract void interrupt() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.interrupt()"); }
  public abstract int status() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.status()"); }
  public default boolean isVirtual() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: com.sun.jdi.ThreadReference.isVirtual()"); }
  public abstract void stop(com.sun.jdi.ObjectReference throwable) throws com.sun.jdi.InvalidTypeException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.stop(com.sun.jdi.ObjectReference)"); }
  public abstract java.util.List<com.sun.jdi.StackFrame> frames() throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.frames()"); }
  public abstract java.util.List<com.sun.jdi.StackFrame> frames(int start, int length) throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.frames(int, int)"); }
  public abstract com.sun.jdi.StackFrame frame(int index) throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.frame(int)"); }
  public abstract int frameCount() throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.frameCount()"); }
  public abstract com.sun.jdi.ThreadGroupReference threadGroup() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.threadGroup()"); }
  public abstract boolean isSuspended() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.isSuspended()"); }
  public abstract void suspend() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.suspend()"); }
  public abstract void resume() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.resume()"); }
  public abstract int suspendCount() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.suspendCount()"); }
  public abstract boolean isAtBreakpoint() { throw new AbstractMethodError("com.sun.jdi.ThreadReference.isAtBreakpoint()"); }
  public abstract java.util.List<com.sun.jdi.ObjectReference> ownedMonitors() throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.ownedMonitors()"); }
  public abstract java.util.List<com.sun.jdi.MonitorInfo> ownedMonitorsAndFrames() throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.ownedMonitorsAndFrames()"); }
  public abstract com.sun.jdi.ObjectReference currentContendedMonitor() throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.currentContendedMonitor()"); }
  public abstract void popFrames(com.sun.jdi.StackFrame frame) throws com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.popFrames(com.sun.jdi.StackFrame)"); }
  public abstract void forceEarlyReturn(com.sun.jdi.Value value) throws com.sun.jdi.InvalidTypeException, com.sun.jdi.ClassNotLoadedException, com.sun.jdi.IncompatibleThreadStateException { throw new AbstractMethodError("com.sun.jdi.ThreadReference.forceEarlyReturn(com.sun.jdi.Value)"); }
  < ---- END java signatures ---- >
}