Klasse FileSystem
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.FileSystem
- Alle implementierten Schnittstellen:
IModuleAwareNameEnvironment
,INameEnvironment
,SuffixConstants
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic interface
AClasspath
, even though an IModuleLocation, can represent a plain classpath location too.static class
This class is defined how to normalize the classpath entries.static interface
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment
IModuleAwareNameEnvironment.LookupStrategy
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected boolean
protected FileSystem.Classpath[]
static ArrayList
<FileSystem.Classpath> protected Map
<String, FileSystem.Classpath> Tasks resulting from --add-reads or --add-exports command line options.Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungFileSystem
(String[] classpathNames, String[] initialFileNames, String encoding) FileSystem
(String[] classpathNames, String[] initialFileNames, String encoding, int mode, String release) FileSystem
(String[] classpathNames, String[] initialFileNames, String encoding, String release) protected
FileSystem
(String[] classpathNames, String[] initialFileNames, String encoding, Collection<String> limitModules) FileSystem
(String[] classpathNames, String[] initialFileNames, String encoding, Collection<String> limitModules, int mode, String release) protected
FileSystem
(FileSystem.Classpath[] paths, String[] initialFileNames, boolean annotationsFromClasspath) FileSystem
(FileSystem.Classpath[] paths, String[] initialFileNames, boolean annotationsFromClasspath, Set<String> limitedModules) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
applyModuleUpdates
(IUpdatableModule compilerModule, IUpdatableModule.UpdateKind kind) Ask the name environment to perform any updates (add-exports or add-reads) to the given module.void
cleanup()
This method cleans the environment.findType
(char[][] compoundName, char[] moduleName) findType
(char[] typeName, char[][] packageName, char[] moduleName) Answer a type identified by the given names. moduleName may be one of the special names from ModuleBinding (ANY, ANY_NAMED, UNNAMED).char[][][]
findTypeNames
(char[][] packageName) char[][]
static FileSystem.Classpath
getClasspath
(String classpathName, String encoding, boolean isSourceOnly, AccessRuleSet accessRuleSet, String destinationPath, Map<String, String> options, String release) static FileSystem.Classpath
getClasspath
(String classpathName, String encoding, int mode, AccessRuleSet accessRuleSet, String destinationPath, Map<String, String> options, String release) static FileSystem.Classpath
getClasspath
(String classpathName, String encoding, AccessRuleSet accessRuleSet) static FileSystem.Classpath
getClasspath
(String classpathName, String encoding, AccessRuleSet accessRuleSet, int mode, String release) static FileSystem.Classpath
getClasspath
(String classpathName, String encoding, AccessRuleSet accessRuleSet, Map<String, String> options, String release) static FileSystem.Classpath
getClasspath
(String classpathName, String encoding, AccessRuleSet accessRuleSet, Map options, int mode, String release) static FileSystem.Classpath
getJrtClasspath
(String jdkHome, String encoding, AccessRuleSet accessRuleSet, Map<String, String> options) getModule
(char[] name) Get the module with the given name, which must denote a named module.getModuleFromEnvironment
(char[] name) char[][]
getModulesDeclaringPackage
(char[][] packageName, char[] moduleName) static FileSystem.Classpath
getOlderSystemRelease
(String jdkHome, String release, AccessRuleSet accessRuleSet) boolean
hasCompilationUnit
(char[][] qualifiedPackageName, char[] moduleName, boolean checkCUs) Answer whether the given package (within the given module) contains any compilation unit.char[][]
listPackages
(char[] moduleName) Lists all packages in the module identified by the given, real module name (i.e., this method is implemented only forIModuleAwareNameEnvironment.LookupStrategy.Named
).void
scanForModules
(Parser parser) TESTS ONLYVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment
findType, findType, getUniqueModulesDeclaringPackage, isPackage
-
Felddetails
-
EMPTY_CLASSPATH
-
classpaths
-
module
-
annotationsFromClasspath
protected boolean annotationsFromClasspath -
moduleLocations
-
moduleUpdates
Tasks resulting from --add-reads or --add-exports command line options.
-
-
Konstruktordetails
-
FileSystem
-
FileSystem
-
FileSystem
protected FileSystem(String[] classpathNames, String[] initialFileNames, String encoding, Collection<String> limitModules) -
FileSystem
-
FileSystem
-
FileSystem
public FileSystem(FileSystem.Classpath[] paths, String[] initialFileNames, boolean annotationsFromClasspath, Set<String> limitedModules) -
FileSystem
protected FileSystem(FileSystem.Classpath[] paths, String[] initialFileNames, boolean annotationsFromClasspath)
-
-
Methodendetails
-
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName, String encoding, AccessRuleSet accessRuleSet) -
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName, String encoding, AccessRuleSet accessRuleSet, Map<String, String> options, String release) -
getJrtClasspath
public static FileSystem.Classpath getJrtClasspath(String jdkHome, String encoding, AccessRuleSet accessRuleSet, Map<String, String> options) -
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName, String encoding, AccessRuleSet accessRuleSet, int mode, String release) -
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName, String encoding, AccessRuleSet accessRuleSet, Map options, int mode, String release) -
getOlderSystemRelease
public static FileSystem.Classpath getOlderSystemRelease(String jdkHome, String release, AccessRuleSet accessRuleSet) -
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName, String encoding, boolean isSourceOnly, AccessRuleSet accessRuleSet, String destinationPath, Map<String, String> options, String release) -
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName, String encoding, int mode, AccessRuleSet accessRuleSet, String destinationPath, Map<String, String> options, String release) -
scanForModules
TESTS ONLY -
cleanup
public void cleanup()Beschreibung aus Schnittstelle kopiert:INameEnvironment
This method cleans the environment. It is responsible for releasing the memory and freeing resources. Passed that point, the name environment is no longer usable. A name environment can have a long life cycle, therefore it is the responsibility of the code which created it to decide when it is a good time to clean it up.- Angegeben von:
cleanup
in SchnittstelleINameEnvironment
-
findType
- Angegeben von:
findType
in SchnittstelleIModuleAwareNameEnvironment
-
findTypeNames
public char[][][] findTypeNames(char[][] packageName) -
findType
Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironment
Answer a type identified by the given names. moduleName may be one of the special names from ModuleBinding (ANY, ANY_NAMED, UNNAMED).- Angegeben von:
findType
in SchnittstelleIModuleAwareNameEnvironment
-
getModulesDeclaringPackage
public char[][] getModulesDeclaringPackage(char[][] packageName, char[] moduleName) - Angegeben von:
getModulesDeclaringPackage
in SchnittstelleIModuleAwareNameEnvironment
-
hasCompilationUnit
public boolean hasCompilationUnit(char[][] qualifiedPackageName, char[] moduleName, boolean checkCUs) Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironment
Answer whether the given package (within the given module) contains any compilation unit.- Angegeben von:
hasCompilationUnit
in SchnittstelleIModuleAwareNameEnvironment
- Parameter:
checkCUs
- - if true, check contained Compilation Units for a matching package declaration- Gibt zurück:
- true iff the package contains at least one compilation unit.
-
getModule
Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironment
Get the module with the given name, which must denote a named module.- Angegeben von:
getModule
in SchnittstelleIModuleAwareNameEnvironment
-
getModuleFromEnvironment
-
getAllAutomaticModules
public char[][] getAllAutomaticModules()- Angegeben von:
getAllAutomaticModules
in SchnittstelleIModuleAwareNameEnvironment
-
listPackages
public char[][] listPackages(char[] moduleName) Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironment
Lists all packages in the module identified by the given, real module name (i.e., this method is implemented only forIModuleAwareNameEnvironment.LookupStrategy.Named
).- Angegeben von:
listPackages
in SchnittstelleIModuleAwareNameEnvironment
- Gibt zurück:
- array of flat, dot-separated package names
-
applyModuleUpdates
Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironment
Ask the name environment to perform any updates (add-exports or add-reads) to the given module.- Angegeben von:
applyModuleUpdates
in SchnittstelleIModuleAwareNameEnvironment
- Parameter:
compilerModule
- the compiler representation of the module to updateskind
- selects what kind of updates should be performed
-