Package jline.io

Class LINE2JAVA

java.lang.Object
jline.io.LINE2JAVA

public final class LINE2JAVA extends Object
Writes the Java (JLINE) source of a model, dispatching on its type.

Port of matlab/src/io/LINE2JAVA.m: a Network goes to QN2JAVA and a LayeredNetwork to LQN2JAVA, in both cases under the model's own name.

  • Method Details

    • write

      public static void write(Object model)
      Writes the generated source to standard output.
    • write

      public static void write(Object model, PrintStream out)
      Writes the generated source to a stream, which is flushed but not closed.
    • write

      public static void write(Object model, String filename)
      Writes the generated source to filename, overwriting it.
    • generate

      public static String generate(Object model)
      Returns the generated source.