
Classes | |
| class | JarClasses |
| class | JarFileNameFilter |
Public Member Functions | |
| JarFolder (File folder) | |
| File[] | getJarFiles () |
| String[] | getJars () |
| File | getJar (String name) |
| boolean | containsJar (String jarname) |
| Collection< JarClasses > | getJarsContainingClass (String javaClass) throws Exception |
| String | getAbsolutePath () |
Private Attributes | |
| final File | jarFolder |
JarFolder holds a folder of jar files allowing to perform the most common operation.
| alma::acs::eclipse::utils::jar::JarFolder::JarFolder | ( | File | folder | ) | [inline] |
References jarFolder.
| boolean alma::acs::eclipse::utils::jar::JarFolder::containsJar | ( | String | jarname | ) | [inline] |
Check if the folder contains a given jar file.
| jarname | A jar file like lc.jar |
true if the folder contains the passed jar References getJarFiles().
| String alma::acs::eclipse::utils::jar::JarFolder::getAbsolutePath | ( | ) | [inline] |
| File alma::acs::eclipse::utils::jar::JarFolder::getJar | ( | String | name | ) | [inline] |
Get the File of the jar with the given name.
| name | The name of the jar like for example lc.jar |
null if the jar does not exist in the folder References getJarFiles().
Referenced by alma::acs::eclipse::utils::jar::AcsFolders::getJar().
| File [] alma::acs::eclipse::utils::jar::JarFolder::getJarFiles | ( | ) | [inline] |
References jarFolder.
Referenced by containsJar(), getJar(), getJars(), and getJarsContainingClass().
| String [] alma::acs::eclipse::utils::jar::JarFolder::getJars | ( | ) | [inline] |
Return the list of jar names in folder. A jar name can be for example lc.jar.
References getJarFiles().
Referenced by alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::setAttributes().
| Collection<JarClasses> alma::acs::eclipse::utils::jar::JarFolder::getJarsContainingClass | ( | String | javaClass | ) | throws Exception [inline] |
Return a list of jar files containing a given class.
The class name can be the whole name of a class or the beginning of its name. For example if javaClass is LoggingClient, this class returns both LoggingClient and LoggingClientText from lc.jar.
| javaClassName | The name of a class or a the beginning of its name |
null if no classes in the jars match with the passed partial name References getJarFiles(), alma::acs::eclipse::utils::jar::JarFileHelper::getMatchingClasses(), and alma::acs::eclipse::utils::jar::JarFileHelper::getName().
final File alma::acs::eclipse::utils::jar::JarFolder::jarFolder [private] |
The folder containing jar files
Referenced by getAbsolutePath(), getJarFiles(), and JarFolder().
1.6.2