Class NPL2Java

java.lang.Object
com.nt.udc.npl.NPL2Java

public class NPL2Java extends Object
  • Constructor Details

    • NPL2Java

      public NPL2Java(String NPLfile, String pkgName, String outdir, boolean overwrite_file) throws NPL2JavaException
      Constructor for NPL2Java translator class. Opens the specified NPL file, creates a NPL-Java translator, and creates and opens the Java file.
      Parameters:
      NPLfile - the pathname of the NPL file to translate
      pkgName - the package name to put in the generated Java file
      outdir - the directory to write the generated Java file
      overwrite_file - overwrite existing Java file if true
      Throws:
      NPL2JavaException - if error translating specified NPL file to Java
  • Method Details

    • main

      public static void main(String[] args)
    • usageString

      public static final String usageString()
      Returns the usage string for the NPL2Java main method.