Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fracpete/list-weka-classes
Helper library for outputting Weka class hierarchies.
https://github.com/fracpete/list-weka-classes
class-list weka
Last synced: about 1 month ago
JSON representation
Helper library for outputting Weka class hierarchies.
- Host: GitHub
- URL: https://github.com/fracpete/list-weka-classes
- Owner: fracpete
- License: gpl-3.0
- Created: 2020-04-05T05:24:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T08:02:39.000Z (almost 5 years ago)
- Last Synced: 2024-10-29T21:11:27.126Z (3 months ago)
- Topics: class-list, weka
- Language: Java
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# list-weka-classes
Helper library for outputting Weka superclasses or all available Weka subclasses
of a specified superclass on the current classpath, with or without packages loaded.## Command-line
```
Listing Weka class hierarchies.Usage: [--help] [-o] [-l] [-s CLASSNAME]
Options:
-o, --offline
If enabled, the package manager is run in offline mode.-l, --load_packages
If enabled, packages get loaded before determining the class
hierarchies.-s, --super_class CLASSNAME
The super class to list the class names for; outputs all super classes
if not supplied.
```## Java
```java
import com.github.fracpete.lwc.Main;public class TestListing {
public static void main(String[] args) throws Exception {
// determine all superclasses
Main main = new Main()
.loadPackages(true)
.offline(false);
String msg = main.execute();
if (msg != null)
throw new Exception(msg);
if (main.getList().isEmpty())
throw new Exception("No superclasses found!");
// list subclasses of 1st superclass
main.superClass(main.getList().get(0));
System.out.println(main.getList().get(0) + ":");
msg = main.execute();
if (msg != null)
throw new Exception(msg);
if (main.getList().isEmpty())
throw new Exception("No subclasses found!");
for (String cls: main.getList())
System.out.println("- " + cls);
}
}
```## Maven
Add the following artifact to your dependencies of your `pom.xml`:
```xml
com.github.fracpete
list-weka-classes
0.0.1
```## Releases
The following releases are available:
* [0.0.1](https://github.com/fracpete/list-weka-classes/releases/download/list-weka-classes-0.0.1/list-weka-classes-0.0.1.jar)