list-weka-classes

Helper class for internet related operations.

License

License

GroupId

GroupId

com.github.fracpete
ArtifactId

ArtifactId

list-weka-classes
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

list-weka-classes
Helper class for internet related operations.
Source Code Management

Source Code Management

https://github.com/fracpete/list-weka-classes

Download list-weka-classes

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.fracpete/list-weka-classes/ -->
<dependency>
    <groupId>com.github.fracpete</groupId>
    <artifactId>list-weka-classes</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fracpete/list-weka-classes/
implementation 'com.github.fracpete:list-weka-classes:0.0.1'
// https://jarcasting.com/artifacts/com.github.fracpete/list-weka-classes/
implementation ("com.github.fracpete:list-weka-classes:0.0.1")
'com.github.fracpete:list-weka-classes:jar:0.0.1'
<dependency org="com.github.fracpete" name="list-weka-classes" rev="0.0.1">
  <artifact name="list-weka-classes" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fracpete', module='list-weka-classes', version='0.0.1')
)
libraryDependencies += "com.github.fracpete" % "list-weka-classes" % "0.0.1"
[com.github.fracpete/list-weka-classes "0.0.1"]

Dependencies

provided (1)

Group / Artifact Type Version
nz.ac.waikato.cms.weka : weka-dev jar 3.9.4

Project Modules

There are no modules declared in this project.

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

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:

    <dependency>
      <groupId>com.github.fracpete</groupId>
      <artifactId>list-weka-classes</artifactId>
      <version>0.0.1</version>
    </dependency>

Releases

The following releases are available:

Versions

Version
0.0.1