Class ModuleInfo

java.lang.Object
org.pkl.core.runtime.ModuleInfo

public final class ModuleInfo extends Object
  • Constructor Details

    • ModuleInfo

      public ModuleInfo(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, com.oracle.truffle.api.source.SourceSection @Nullable [] docComment, String moduleName, ModuleKey moduleKey, ResolvedModuleKey resolvedModuleKey, boolean isAmend)
  • Method Details

    • initAnnotations

      public void initAnnotations(List<VmTyped> annotations)
    • getAnnotations

      public List<VmTyped> getAnnotations()
    • getSourceSection

      public com.oracle.truffle.api.source.SourceSection getSourceSection()
    • getHeaderSection

      public com.oracle.truffle.api.source.SourceSection getHeaderSection()
    • getDocComment

      public com.oracle.truffle.api.source.SourceSection @Nullable [] getDocComment()
    • getModuleName

      public String getModuleName()
    • getModuleKey

      public ModuleKey getModuleKey()
    • getResolvedModuleKey

      public ResolvedModuleKey getResolvedModuleKey()
    • getMirror

      public VmTyped getMirror(VmTyped module)
    • getModuleSchema

      public ModuleSchema getModuleSchema(VmTyped module)
    • isAmend

      public boolean isAmend()
      Tells whether this module amends another module.