Class AbstractPath

java.lang.Object
org.robovm.compiler.clazz.AbstractPath
All Implemented Interfaces:
Path
Direct Known Subclasses:
DirectoryPath, Java9RuntimePath, ZipFilePath

public abstract class AbstractPath
extends Object
implements Path
Version:
$Id$
  • Field Details

    • file

      protected final File file
    • clazzes

      protected final Clazzes clazzes
    • index

      protected final int index
    • clazzSet

      protected Set<Clazz> clazzSet
    • disposed

      protected boolean disposed
    • inBootclasspath

      protected boolean inBootclasspath
    • generatedClasses

      protected Map<String,​Clazz> generatedClasses
    • generatedClassDir

      protected final File generatedClassDir
  • Method Details

    • isInBootClasspath

      public boolean isInBootClasspath()
      Specified by:
      isInBootClasspath in interface Path
    • getIndex

      public int getIndex()
      Specified by:
      getIndex in interface Path
    • getFile

      public File getFile()
      Specified by:
      getFile in interface Path
    • listClasses

      public Set<Clazz> listClasses()
      Specified by:
      listClasses in interface Path
    • getGeneratedClassFile

      public File getGeneratedClassFile​(String internalName)
      Description copied from interface: Path
      Returns the File with the path where the generated class file with the specified internal name should be saved.
      Specified by:
      getGeneratedClassFile in interface Path
      Returns:
      the File for the specified generated class.
    • loadGeneratedClass

      public Clazz loadGeneratedClass​(String internalName)
      Description copied from interface: Path
      Loads a generated class associated with this Path.
      Specified by:
      loadGeneratedClass in interface Path
      Returns:
      the Clazz or null if not found.
    • doListClasses

      protected abstract Set<Clazz> doListClasses()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • disposeBuildData

      public void disposeBuildData()
      Description copied from interface: Path
      Dispose any cached data to reduce memory footprint
      Specified by:
      disposeBuildData in interface Path