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(java.io.File f, SourceFileModule clonedFrom)
SourceFileModule(java.io.File f, java.lang.String fileName, Module container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
java.io.Reader
getInputReader()
java.net.URL
getURL()
boolean
isClassFile()
boolean
isSourceFile()
java.lang.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(java.io.File f, java.lang.String fileName, Module container)
-
SourceFileModule
public SourceFileModule(java.io.File f, SourceFileModule clonedFrom)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isClassFile
public boolean isClassFile()
- Specified by:
isClassFile
in interfaceModuleEntry
- Returns:
- true if the file is a class file.
-
getClassName
public java.lang.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 java.io.Reader getInputReader()
- Specified by:
getInputReader
in interfaceSourceModule
-
getURL
public java.net.URL getURL()
- Specified by:
getURL
in interfaceSourceModule
-
-