com.ibm.wala.classLoader
Class JarFileEntry
java.lang.Object
com.ibm.wala.classLoader.JarFileEntry
- All Implemented Interfaces:
- ModuleEntry
public class JarFileEntry
- extends java.lang.Object
- implements ModuleEntry
An entry in a Jar file.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
getName
public java.lang.String getName()
- Specified by:
getName in interface ModuleEntry
- Returns:
- a String that represents the name of the file described
by this object
isClassFile
public boolean isClassFile()
- Specified by:
isClassFile in interface ModuleEntry
- Returns:
- true if the file is a class file.
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream in interface ModuleEntry
getSize
public long getSize()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
isModuleFile
public boolean isModuleFile()
- Specified by:
isModuleFile in interface ModuleEntry
- Returns:
- true iff this module entry (file) represents a module in its own right.
e.g., a jar file which is an entry in another jar file.
asModule
public Module asModule()
- Description copied from interface:
ModuleEntry
- Precondition: isModuleFile().
- Specified by:
asModule in interface ModuleEntry
- Returns:
- a Module view of this entry.
getJarFile
public java.util.jar.JarFile getJarFile()
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getClassName
public java.lang.String getClassName()
- Specified by:
getClassName in interface ModuleEntry
- Returns:
- the name of the class represented by this entry
isSourceFile
public boolean isSourceFile()
- Specified by:
isSourceFile in interface ModuleEntry
- Returns:
- true if the file is a source file.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object