Package gw.lang.init

Class JavaTypeManifold

java.lang.Object
gw.lang.init.JavaTypeManifold
All Implemented Interfaces:
manifold.api.type.IFileConnected, manifold.api.type.ISelfCompiled, manifold.api.type.ITypeManifold

public class JavaTypeManifold extends Object implements manifold.api.type.ITypeManifold
Loads Java from source (*.java files) using Gosu's Java support.
  • Field Details

    • _module

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

    • JavaTypeManifold

      public JavaTypeManifold()
  • Method Details

    • accept

      public boolean accept(manifold.api.host.IModule module)
      Specified by:
      accept in interface manifold.api.type.ITypeManifold
    • 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(String fqn)
      Specified by:
      isType in interface manifold.api.type.ITypeManifold
    • isTopLevelType

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

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

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

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

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

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

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

      public List<manifold.api.fs.IFile> findFilesForType(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(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 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, String[] strings, manifold.api.host.RefreshKind refreshKind)
      Specified by:
      refreshedFile in interface manifold.api.type.IFileConnected
    • findJavaClass

      private IType findJavaClass(String fqn)