Package com.ibm.wala.classLoader
Class SourceFileModule
- java.lang.Object
-
- com.ibm.wala.classLoader.FileModule
-
- com.ibm.wala.classLoader.SourceFileModule
-
- All Implemented Interfaces:
Module
,ModuleEntry
,SourceModule
public class SourceFileModule extends FileModule implements Module, ModuleEntry, SourceModule
AModule
which is a wrapper around a source file
-
-
Constructor Summary
Constructors Constructor Description SourceFileModule(File f, SourceFileModule clonedFrom)
SourceFileModule(File f, String fileName, Module container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassName()
Reader
getInputReader()
URL
getURL()
boolean
isClassFile()
boolean
isSourceFile()
String
toString()
-
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 Detail
-
SourceFileModule
public SourceFileModule(File f, SourceFileModule clonedFrom)
-
-
Method Detail
-
isClassFile
public boolean isClassFile()
- Specified by:
isClassFile
in interfaceModuleEntry
- Returns:
- true if the file is a class file.
-
getClassName
public String 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
public Reader getInputReader()
- Specified by:
getInputReader
in interfaceSourceModule
-
getURL
public URL getURL()
- Specified by:
getURL
in interfaceSourceModule
-
-