Class TypeSet


  • public class TypeSet
    extends java.lang.Object
    Keeps track of the types encountered in a ASTCompilationUnit
    • Constructor Detail

      • TypeSet

        public TypeSet()
        The TypeSet provides type resolution for the symbol facade.
      • TypeSet

        public TypeSet​(java.lang.ClassLoader classLoader)
        The TypeSet provides type resolution for the symbol facade.
        Parameters:
        classLoader - the class loader to use to search classes (could be an auxiliary class path)
    • Method Detail

      • hasAuxclasspath

        public boolean hasAuxclasspath()
        Whether the classloader is using the auxclasspath or not.
        Returns:
        true if the classloader is using the auxclasspath feature
      • setASTCompilationUnitPackage

        public void setASTCompilationUnitPackage​(java.lang.String pkg)
      • getASTCompilationUnitPackage

        public java.lang.String getASTCompilationUnitPackage()
      • addImport

        public void addImport​(java.lang.String importString)
        Adds a import to the list of imports
        Parameters:
        importString - the import to add
      • getImportsCount

        public int getImportsCount()
      • getExplicitImports

        public java.util.Set<java.lang.String> getExplicitImports()
      • findClass

        public java.lang.Class<?> findClass​(java.lang.String name)
        Resolves a class by its name using all known resolvers.
        Parameters:
        name - the name of the class, can be a simple name or a fully qualified name.
        Returns:
        the class or null if none found