public class RMJarFileEntry
extends java.lang.Object
Constructor and Description |
---|
RMJarFileEntry(RMJarFile aJarFile,
java.lang.String aPath)
Creates a new entry for given name.
|
RMJarFileEntry(RMJarFile aJarFile,
java.lang.String aPath,
boolean isDir)
Creates a new entry for given name.
|
Modifier and Type | Method and Description |
---|---|
RMJarFileEntry |
getClass(java.lang.String aName)
Returns a class for a given (simple) name.
|
java.util.List<RMJarFileEntry> |
getClasses()
Returns a list of classes.
|
java.util.List<RMJarFileEntry> |
getClasses(java.lang.String aPrefix)
Returns a list of classes with given prefix.
|
java.lang.String |
getClassName()
Returns the class name.
|
java.util.List<RMJarFileEntry> |
getDirectories(java.lang.String aPrefix)
Returns a list of directories with given prefix.
|
java.util.List<RMJarFileEntry> |
getEntries()
Returns the entries.
|
java.util.List<RMJarFileEntry> |
getEntries(java.lang.String aType,
boolean goDeep)
Returns the list of entries for a type.
|
RMJarFileEntry |
getEntry(int anIndex)
Returns the individual entry at given index.
|
int |
getEntryCount()
Returns the number of entries.
|
RMJarFile |
getJarFile()
Returns the jar file.
|
java.lang.String |
getName()
Returns the name of this entry relative to the parent RMJarFile.
|
RMJarFileEntry |
getPackage()
Returns the package for the entry.
|
RMJarFileEntry |
getPackage(java.lang.String aName)
Returns the child package with the given package name/path.
|
java.lang.String |
getPackageName()
Returns the package name.
|
java.util.List<RMJarFileEntry> |
getPackages(java.lang.String aPrefix)
Returns a list of packages with given package name/path prefix.
|
RMJarFileEntry |
getParent()
Returns the parent.
|
java.lang.String |
getParentPath()
Returns the parent path.
|
java.lang.String |
getPath()
Returns the path.
|
java.lang.String |
getSimpleName()
Returns the simple name.
|
java.lang.String |
getSimplePath()
Returns the simple path (name without extension).
|
java.net.URL |
getURL()
Returns the full name, including the parent RMJarFile name.
|
boolean |
isDirectory()
Returns whether is directory.
|
java.lang.String |
toString()
Standard toString implementation.
|
public RMJarFileEntry(RMJarFile aJarFile, java.lang.String aPath)
public RMJarFileEntry(RMJarFile aJarFile, java.lang.String aPath, boolean isDir)
public RMJarFile getJarFile()
public java.lang.String getPath()
public RMJarFileEntry getParent()
public boolean isDirectory()
public java.lang.String getSimplePath()
public java.lang.String getName()
public java.lang.String getSimpleName()
public java.lang.String getParentPath()
public java.net.URL getURL()
public java.lang.String getClassName()
public RMJarFileEntry getPackage()
public java.lang.String getPackageName()
public int getEntryCount()
public RMJarFileEntry getEntry(int anIndex)
public java.util.List<RMJarFileEntry> getEntries()
public java.util.List<RMJarFileEntry> getEntries(java.lang.String aType, boolean goDeep)
public java.util.List<RMJarFileEntry> getDirectories(java.lang.String aPrefix)
public RMJarFileEntry getPackage(java.lang.String aName)
public java.util.List<RMJarFileEntry> getPackages(java.lang.String aPrefix)
public java.util.List<RMJarFileEntry> getClasses()
public RMJarFileEntry getClass(java.lang.String aName)
public java.util.List<RMJarFileEntry> getClasses(java.lang.String aPrefix)
public java.lang.String toString()
toString
in class java.lang.Object