Class ClassLoaderEnvironment

java.lang.Object
org.eclipse.jdt.internal.compiler.batch.FileSystem
org.bonitasoft.engine.business.data.generator.compiler.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(ClassLoader classLoader, Set<String> classesToBeCompiled)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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 Details

    • ClassLoaderEnvironment

      public ClassLoaderEnvironment(ClassLoader classLoader, Set<String> classesToBeCompiled)
  • Method Details

    • 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