Class ClasspathLocation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation
- Direct Known Subclasses:
ClasspathDirectory,ClasspathJar,ClasspathJrt,ClasspathSourceDirectory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessRuleSetprotected Collection<ClasspathLocation>protected ZipFileprotected Stringprotected IModuleprotected Stringprotected IUpdatableModule.UpdatesByKind -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidcleanup()protected NameEnvironmentAnswercreateAnswer(String fileNameWithoutExtension, IBinaryType reader, char[] moduleName) abstract Stringprotected IBinaryTypedecorateWithExternalAnnotations(IBinaryType reader, String fileNameWithoutExtension) Search within this classpath location for an .eea file describing the given binary type.booleanNOTE: this method is intended for TESTS onlyfindClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) abstract NameEnvironmentAnswerfindClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName) abstract NameEnvironmentAnswerfindClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) static ClasspathLocationforBinaryFolder(org.eclipse.core.resources.IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, Collection<ClasspathLocation> allExternalAnnotationPaths, boolean autoModule) static ClasspathJrtforJrtSystem(String jrtPath, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, String release) static ClasspathJrtforJrtSystem(String jrtPath, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, Collection<ClasspathLocation> allLocationsForEEA, String release) static ClasspathLocationforLibrary(String libraryPathname, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, boolean isOnModulePath, String compliance) static ClasspathLocationforLibrary(ZipFile zipFile, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, Collection<ClasspathLocation> allLocationsForEEA, boolean isOnModulePath, String compliance) static ClasspathLocationforLibrary(org.eclipse.core.resources.IFile library, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, Collection<ClasspathLocation> allLocationsForEEA, boolean isOnModulePath, String compliance) char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) abstract org.eclipse.core.runtime.IPathabstract booleanhasCompilationUnit(String pkgName, String moduleName) booleanbooleanabstract booleanchar[][]voidreset()voidchar[][]singletonModuleNameIf(boolean condition)
-
Field Details
-
module
-
updates
-
limitModuleNames
-
patchModuleName
-
externalAnnotationPath
-
allLocationsForEEA
-
annotationZipFile
-
accessRuleSet
-
-
Constructor Details
-
ClasspathLocation
public ClasspathLocation()
-
-
Method Details
-
findClass
public abstract NameEnvironmentAnswer findClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName) -
findClass
-
isPackage
-
getModulesDeclaringPackage
-
hasModule
public boolean hasModule() -
hasCompilationUnit
-
findClass
-
setModule
-
getModule
-
areAllModuleOptionsEqual
-
forBinaryFolder
public static ClasspathLocation forBinaryFolder(org.eclipse.core.resources.IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, Collection<ClasspathLocation> allExternalAnnotationPaths, boolean autoModule) -
forJrtSystem
public static ClasspathJrt forJrtSystem(String jrtPath, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, String release) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
forJrtSystem
public static ClasspathJrt forJrtSystem(String jrtPath, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, Collection<ClasspathLocation> allLocationsForEEA, String release) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
forLibrary
public static ClasspathLocation forLibrary(String libraryPathname, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, boolean isOnModulePath, String compliance) -
forLibrary
public static ClasspathLocation forLibrary(org.eclipse.core.resources.IFile library, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, Collection<ClasspathLocation> allLocationsForEEA, boolean isOnModulePath, String compliance) -
forLibrary
public static ClasspathLocation forLibrary(ZipFile zipFile, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, Collection<ClasspathLocation> allLocationsForEEA, boolean isOnModulePath, String compliance) -
getProjectRelativePath
public abstract org.eclipse.core.runtime.IPath getProjectRelativePath() -
isOutputFolder
public boolean isOutputFolder() -
cleanup
public void cleanup() -
reset
public void reset() -
debugPathString
-
singletonModuleNameIf
public char[][] singletonModuleNameIf(boolean condition) -
listPackages
public char[][] listPackages() -
decorateWithExternalAnnotations
protected IBinaryType decorateWithExternalAnnotations(IBinaryType reader, String fileNameWithoutExtension) Search within this classpath location for an .eea file describing the given binary type. If .eea is found return a eea-decorated binary type (of type ExternalAnnotationDecorator), else return the original type unchanged. This method is used only when the project is configured to search all locations for .eea. -
createAnswer
protected NameEnvironmentAnswer createAnswer(String fileNameWithoutExtension, IBinaryType reader, char[] moduleName) -
externalAnnotationsEquals
NOTE: this method is intended for TESTS only
-