Class ClassLoaderEnvironment

  • All Implemented Interfaces:
    org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment, org.eclipse.jdt.internal.compiler.env.INameEnvironment, org.eclipse.jdt.internal.compiler.util.SuffixConstants

    public class ClassLoaderEnvironment
    extends org.eclipse.jdt.internal.compiler.batch.FileSystem
    Environment provided to the JDT compiler that load class from a classloader instead of a classpath /!\ it extends FileSystem only because the JDT compiler use the subtype instead of Environment
    Author:
    Baptiste Mesta
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jdt.internal.compiler.batch.FileSystem

        org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath, org.eclipse.jdt.internal.compiler.batch.FileSystem.ClasspathNormalizer, org.eclipse.jdt.internal.compiler.batch.FileSystem.ClasspathSectionProblemReporter
      • Nested classes/interfaces inherited from interface org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment

        org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment.LookupStrategy
    • Field Summary

      • Fields inherited from class org.eclipse.jdt.internal.compiler.batch.FileSystem

        annotationsFromClasspath, classpaths, EMPTY_CLASSPATH, module, moduleLocations
      • Fields inherited from interface org.eclipse.jdt.internal.compiler.util.SuffixConstants

        EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassLoaderEnvironment​(java.lang.ClassLoader classLoader, java.util.Set<java.lang.String> classesToBeCompiled)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup()  
      org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType​(char[][] compoundTypeName)  
      org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType​(char[] typeName, char[][] packageName)  
      boolean isPackage​(char[][] parentPackageName, char[] className)  
      • Methods inherited from class org.eclipse.jdt.internal.compiler.batch.FileSystem

        applyModuleUpdates, findType, findType, findTypeNames, getAllAutomaticModules, getClasspath, getClasspath, getClasspath, getJrtClasspath, getModule, getModuleFromEnvironment, getModulesDeclaringPackage, getOlderSystemRelease, hasCompilationUnit, listPackages, scanForModules
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment

        getUniqueModulesDeclaringPackage
    • Constructor Detail

      • ClassLoaderEnvironment

        public ClassLoaderEnvironment​(java.lang.ClassLoader classLoader,
                                      java.util.Set<java.lang.String> classesToBeCompiled)
    • Method Detail

      • findType

        public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType​(char[][] compoundTypeName)
      • findType

        public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType​(char[] typeName,
                                                                                    char[][] packageName)
      • isPackage

        public boolean isPackage​(char[][] parentPackageName,
                                 char[] className)
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
        Overrides:
        cleanup in class org.eclipse.jdt.internal.compiler.batch.FileSystem