com.ibm.wala.classLoader
Class JarFileModule

java.lang.Object
  extended by com.ibm.wala.classLoader.JarFileModule
All Implemented Interfaces:
Module
Direct Known Subclasses:
J2EEArchiveFileModule

public class JarFileModule
extends java.lang.Object
implements Module

A module which is a wrapper around a Jar file


Constructor Summary
JarFileModule(java.util.jar.JarFile f)
           
 
Method Summary
protected  ModuleEntry createEntry(java.util.zip.ZipEntry z)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAbsolutePath()
           
 byte[] getContents(java.util.zip.ZipEntry entry)
           
 java.util.Iterator<ModuleEntry> getEntries()
           
 java.util.jar.JarFile getJarFile()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JarFileModule

public JarFileModule(java.util.jar.JarFile f)
Method Detail

getAbsolutePath

public java.lang.String getAbsolutePath()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createEntry

protected ModuleEntry createEntry(java.util.zip.ZipEntry z)

getEntries

public java.util.Iterator<ModuleEntry> getEntries()
Specified by:
getEntries in interface Module
Returns:
an Iterator of the ModuleEntries in this Module.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getContents

public byte[] getContents(java.util.zip.ZipEntry entry)

getJarFile

public java.util.jar.JarFile getJarFile()