Class SourceFileModule
java.lang.Object
com.ibm.wala.classLoader.FileModule
com.ibm.wala.classLoader.SourceFileModule
- All Implemented Interfaces:
Module
,ModuleEntry
,SourceModule
- Direct Known Subclasses:
EclipseSourceFileModule
,MappedSourceFileModule
,NodejsRequiredSourceModule
A
Module
which is a wrapper around a source file-
Constructor Summary
ConstructorDescriptionSourceFileModule
(File f, SourceFileModule clonedFrom) SourceFileModule
(File f, String fileName, Module container) -
Method Summary
Methods inherited from class com.ibm.wala.classLoader.FileModule
asModule, equals, getAbsolutePath, getContainer, getEntries, getFile, getInputStream, getName, hashCode, isModuleFile
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.Module
getEntries
Methods inherited from interface com.ibm.wala.classLoader.ModuleEntry
asModule, getContainer, getInputStream, getName, isModuleFile
-
Constructor Details
-
SourceFileModule
-
SourceFileModule
-
-
Method Details
-
toString
-
isClassFile
public boolean isClassFile()- Specified by:
isClassFile
in interfaceModuleEntry
- Returns:
- true if the file is a class file.
-
getClassName
- Specified by:
getClassName
in interfaceModuleEntry
- Returns:
- the name of the class represented by this entry
-
isSourceFile
public boolean isSourceFile()- Specified by:
isSourceFile
in interfaceModuleEntry
- Returns:
- true if the file is a source file.
-
getInputReader
- Specified by:
getInputReader
in interfaceSourceModule
-
getURL
- Specified by:
getURL
in interfaceSourceModule
-