Package gw.lang.init

Class GosuTypeManifold

  • All Implemented Interfaces:
    manifold.api.type.IFileConnected, manifold.api.type.ISelfCompiled, manifold.api.type.ITypeManifold

    public class GosuTypeManifold
    extends java.lang.Object
    implements manifold.api.type.ITypeManifold
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private manifold.api.host.IModule _module  
      • Fields inherited from interface manifold.api.type.ITypeManifold

        ARG_DUMP_SOURCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      byte[] compile​(java.lang.String fqn)  
      java.lang.String contribute​(javax.tools.JavaFileManager.Location location, java.lang.String fqn, boolean b, java.lang.String s1, javax.tools.DiagnosticListener<javax.tools.JavaFileObject> diagnosticListener)  
      java.util.List<manifold.api.fs.IFile> findFilesForType​(java.lang.String fqn)  
      private IType findGosuClass​(java.lang.String fqn)  
      java.util.Collection<java.lang.String> getAllTypeNames()  
      manifold.api.type.ClassType getClassType​(java.lang.String fqn)  
      manifold.api.type.ContributorKind getContributorKind()  
      manifold.api.host.IModule getModule()  
      java.lang.String getPackage​(java.lang.String fqn)  
      manifold.api.type.ISourceKind getSourceKind()  
      java.util.Collection<manifold.api.type.TypeName> getTypeNames​(java.lang.String pkg)  
      java.lang.String[] getTypesForFile​(manifold.api.fs.IFile iFile)  
      boolean handlesFile​(manifold.api.fs.IFile file)  
      boolean handlesFileExtension​(java.lang.String s)  
      void init​(manifold.api.host.IModule module)  
      boolean isPackage​(java.lang.String pkg)  
      boolean isSelfCompile​(java.lang.String fqn)  
      boolean isTopLevelType​(java.lang.String fqn)  
      boolean isType​(java.lang.String fqn)  
      manifold.api.host.RefreshKind refreshedFile​(manifold.api.fs.IFile iFile, java.lang.String[] strings, manifold.api.host.RefreshKind refreshKind)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface manifold.api.type.IFileConnected

        isFileBacked
      • Methods inherited from interface manifold.api.type.ISelfCompiled

        parse
      • Methods inherited from interface manifold.api.type.ITypeManifold

        accept, enterPostJavaCompilation
    • Field Detail

      • _module

        private manifold.api.host.IModule _module
    • Constructor Detail

      • GosuTypeManifold

        public GosuTypeManifold()
    • Method Detail

      • init

        public void init​(manifold.api.host.IModule module)
        Specified by:
        init in interface manifold.api.type.ITypeManifold
      • getModule

        public manifold.api.host.IModule getModule()
        Specified by:
        getModule in interface manifold.api.type.ITypeManifold
      • getSourceKind

        public manifold.api.type.ISourceKind getSourceKind()
        Specified by:
        getSourceKind in interface manifold.api.type.ITypeManifold
      • getContributorKind

        public manifold.api.type.ContributorKind getContributorKind()
        Specified by:
        getContributorKind in interface manifold.api.type.ITypeManifold
      • isType

        public boolean isType​(java.lang.String fqn)
        Specified by:
        isType in interface manifold.api.type.ITypeManifold
      • isTopLevelType

        public boolean isTopLevelType​(java.lang.String fqn)
        Specified by:
        isTopLevelType in interface manifold.api.type.ITypeManifold
      • isPackage

        public boolean isPackage​(java.lang.String pkg)
        Specified by:
        isPackage in interface manifold.api.type.ITypeManifold
      • getClassType

        public manifold.api.type.ClassType getClassType​(java.lang.String fqn)
        Specified by:
        getClassType in interface manifold.api.type.ITypeManifold
      • getPackage

        public java.lang.String getPackage​(java.lang.String fqn)
        Specified by:
        getPackage in interface manifold.api.type.ITypeManifold
      • contribute

        public java.lang.String contribute​(javax.tools.JavaFileManager.Location location,
                                           java.lang.String fqn,
                                           boolean b,
                                           java.lang.String s1,
                                           javax.tools.DiagnosticListener<javax.tools.JavaFileObject> diagnosticListener)
        Specified by:
        contribute in interface manifold.api.type.ITypeManifold
      • getAllTypeNames

        public java.util.Collection<java.lang.String> getAllTypeNames()
        Specified by:
        getAllTypeNames in interface manifold.api.type.ITypeManifold
      • getTypeNames

        public java.util.Collection<manifold.api.type.TypeName> getTypeNames​(java.lang.String pkg)
        Specified by:
        getTypeNames in interface manifold.api.type.ITypeManifold
      • findFilesForType

        public java.util.List<manifold.api.fs.IFile> findFilesForType​(java.lang.String fqn)
        Specified by:
        findFilesForType in interface manifold.api.type.ITypeManifold
      • clear

        public void clear()
        Specified by:
        clear in interface manifold.api.type.ITypeManifold
      • handlesFileExtension

        public boolean handlesFileExtension​(java.lang.String s)
        Specified by:
        handlesFileExtension in interface manifold.api.type.IFileConnected
      • handlesFile

        public boolean handlesFile​(manifold.api.fs.IFile file)
        Specified by:
        handlesFile in interface manifold.api.type.IFileConnected
      • getTypesForFile

        public java.lang.String[] getTypesForFile​(manifold.api.fs.IFile iFile)
        Specified by:
        getTypesForFile in interface manifold.api.type.IFileConnected
      • refreshedFile

        public manifold.api.host.RefreshKind refreshedFile​(manifold.api.fs.IFile iFile,
                                                           java.lang.String[] strings,
                                                           manifold.api.host.RefreshKind refreshKind)
        Specified by:
        refreshedFile in interface manifold.api.type.IFileConnected
      • isSelfCompile

        public boolean isSelfCompile​(java.lang.String fqn)
        Specified by:
        isSelfCompile in interface manifold.api.type.ISelfCompiled
      • compile

        public byte[] compile​(java.lang.String fqn)
        Specified by:
        compile in interface manifold.api.type.ISelfCompiled
      • findGosuClass

        private IType findGosuClass​(java.lang.String fqn)