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
AModulewhich 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 StringgetClassName()ReadergetInputReader()URLgetURL()booleanisClassFile()booleanisSourceFile()StringtoString()-
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:
isClassFilein interfaceModuleEntry- Returns:
- true if the file is a class file.
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceModuleEntry- Returns:
- the name of the class represented by this entry
-
isSourceFile
public boolean isSourceFile()
- Specified by:
isSourceFilein interfaceModuleEntry- Returns:
- true if the file is a source file.
-
getInputReader
public Reader getInputReader()
- Specified by:
getInputReaderin interfaceSourceModule
-
getURL
public URL getURL()
- Specified by:
getURLin interfaceSourceModule
-
-