Class JSModuleRecord

java.lang.Object
com.oracle.truffle.js.runtime.objects.ScriptOrModule
com.oracle.truffle.js.runtime.objects.JSModuleRecord

public class JSModuleRecord extends ScriptOrModule
Source Text Module Record.
  • Constructor Details

  • Method Details

    • getModule

      public Module getModule()
    • getModuleLoader

      public JSModuleLoader getModuleLoader()
    • getFunctionData

      public JSFunctionData getFunctionData()
    • getFrameDescriptor

      public com.oracle.truffle.api.frame.FrameDescriptor getFrameDescriptor()
    • getModuleData

      public JSModuleData getModuleData()
    • getStatus

      public JSModuleRecord.Status getStatus()
    • setStatus

      public void setStatus(JSModuleRecord.Status status)
    • hasBeenEvaluated

      public boolean hasBeenEvaluated()
    • getEvaluationError

      public Throwable getEvaluationError()
    • setEvaluationError

      public void setEvaluationError(Throwable evaluationError)
    • getNamespace

      public JSDynamicObject getNamespace()
    • setNamespace

      public void setNamespace(JSDynamicObject namespace)
    • getEnvironment

      public com.oracle.truffle.api.frame.MaterializedFrame getEnvironment()
    • setEnvironment

      public void setEnvironment(com.oracle.truffle.api.frame.MaterializedFrame environment)
    • getHostDefined

      public Object getHostDefined()
    • getDFSIndex

      public int getDFSIndex()
    • setDFSIndex

      public void setDFSIndex(int dfsIndex)
    • getDFSAncestorIndex

      public int getDFSAncestorIndex()
    • setDFSAncestorIndex

      public void setDFSAncestorIndex(int dfsAncestorIndex)
    • getExecutionResult

      public Object getExecutionResult()
    • setExecutionResult

      public void setExecutionResult(Object executionResult)
    • getExecutionResultOrThrow

      public Object getExecutionResultOrThrow()
    • getImportMeta

      public JSDynamicObject getImportMeta()
    • setUnlinked

      public void setUnlinked()
    • getTopLevelCapability

      public PromiseCapabilityRecord getTopLevelCapability()
    • setTopLevelCapability

      public void setTopLevelCapability(PromiseCapabilityRecord capability)
    • isAsyncEvaluation

      public boolean isAsyncEvaluation()
    • getAsyncParentModules

      public List<JSModuleRecord> getAsyncParentModules()
    • setPendingAsyncDependencies

      public void setPendingAsyncDependencies(int value)
    • initAsyncParentModules

      public void initAsyncParentModules()
    • incPendingAsyncDependencies

      public void incPendingAsyncDependencies()
    • decPendingAsyncDependencies

      public void decPendingAsyncDependencies()
    • appendAsyncParentModules

      public void appendAsyncParentModules(JSModuleRecord moduleRecord)
    • getPendingAsyncDependencies

      public int getPendingAsyncDependencies()
    • setAsyncEvaluatingOrder

      public void setAsyncEvaluatingOrder(long order)
    • getAsyncEvaluatingOrder

      public long getAsyncEvaluatingOrder()
    • hasTLA

      public boolean hasTLA()
    • setCycleRoot

      public void setCycleRoot(JSModuleRecord module)
    • getCycleRoot

      public JSModuleRecord getCycleRoot()
    • rememberImportedModuleSource

      public void rememberImportedModuleSource(com.oracle.truffle.api.strings.TruffleString moduleSpecifier, com.oracle.truffle.api.source.Source moduleSource)
      Description copied from class: ScriptOrModule
      Keep a link from the referencing module or script to the imported module's Source, so that the latter is kept alive for the lifetime of the former.
      Overrides:
      rememberImportedModuleSource in class ScriptOrModule