public class ClasspathDirectory extends ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCEEXTENSION_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| Modifier and Type | Method and Description |
|---|---|
java.util.List |
fetchLinkedJars(FileSystem.ClasspathSectionProblemReporter problemReporter)
Return a list of the jar file names defined in the Class-Path section
of the jar file manifest if any, null else.
|
NameEnvironmentAnswer |
findClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String moduleName,
java.lang.String qualifiedBinaryFileName) |
NameEnvironmentAnswer |
findClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String moduleName,
java.lang.String qualifiedBinaryFileName,
boolean asBinaryOnly) |
NameEnvironmentAnswer |
findSecondaryInClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String qualifiedBinaryFileName) |
char[][][] |
findTypeNames(java.lang.String qualifiedPackageName,
java.lang.String moduleName) |
int |
getMode() |
IModule |
getModule()
Get the module that this entry contributes.
|
char[][] |
getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
Answer the relevant modules that declare the given package.
|
java.lang.String |
getPath()
Return the path for file based classpath entries.
|
boolean |
hasAnnotationFileFor(java.lang.String qualifiedTypeName)
Can the current location provide an external annotation file for the given type?
|
boolean |
hasCompilationUnit(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
Answer whether the given package has any compilation unit (.java or .class) in the given module.
|
boolean |
hasCUDeclaringPackage(java.lang.String qualifiedPackageName,
java.util.function.Function<CompilationUnit,java.lang.String> pkgNameExtractor) |
void |
initialize()
Initialize the entry
|
char[][] |
listPackages()
Lists all packages in this modulepath entry.
|
char[] |
normalizedPath()
Return a normalized path for file based classpath entries.
|
void |
reset()
This method resets the environment.
|
java.lang.String |
toString() |
acceptModule, allModules, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, getModuleNames, hashCode, isAutomaticModule, isPackage, selectModules, singletonModuleNameIfclone, finalize, getClass, notify, notifyAll, wait, wait, waithasModulegetModule, servesModulepublic java.util.List fetchLinkedJars(FileSystem.ClasspathSectionProblemReporter problemReporter)
FileSystem.ClasspathproblemReporter - problem reporter with which potential
misconfiguration issues are raisedpublic NameEnvironmentAnswer findSecondaryInClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String qualifiedBinaryFileName)
public boolean hasAnnotationFileFor(java.lang.String qualifiedTypeName)
FileSystem.ClasspathqualifiedTypeName - type name in qualified /-separated notation.public NameEnvironmentAnswer findClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String moduleName, java.lang.String qualifiedBinaryFileName)
public NameEnvironmentAnswer findClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String moduleName, java.lang.String qualifiedBinaryFileName, boolean asBinaryOnly)
public char[][][] findTypeNames(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
public void initialize()
throws java.io.IOException
FileSystem.Classpathjava.io.IOExceptionpublic char[][] getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
IModulePathEntrypublic boolean hasCompilationUnit(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
IModulePathEntryqualifiedPackageName - '/'-separated package namemoduleName - if non-null only CUs attached to the given module should be consideredpublic boolean hasCUDeclaringPackage(java.lang.String qualifiedPackageName,
java.util.function.Function<CompilationUnit,java.lang.String> pkgNameExtractor)
public char[][] listPackages()
IModulePathEntrypublic void reset()
FileSystem.Classpathreset in interface FileSystem.Classpathreset in class ClasspathLocationpublic java.lang.String toString()
toString in class java.lang.Objectpublic char[] normalizedPath()
FileSystem.Classpathpublic java.lang.String getPath()
FileSystem.ClasspathgetPath in interface FileSystem.ClasspathgetPath in class ClasspathLocationpublic int getMode()
getMode in class ClasspathLocationpublic IModule getModule()
IModulePathEntry