< prev index next >

make/nashorn/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/Main.java

Print this page
rev 52456 : imported patch asm.additional


  26 package jdk.nashorn.internal.tools.nasgen;
  27 
  28 import java.io.File;
  29 import java.io.FileInputStream;
  30 import java.io.FileOutputStream;
  31 import java.io.IOException;
  32 import java.io.PrintWriter;
  33 import jdk.internal.org.objectweb.asm.ClassReader;
  34 import jdk.internal.org.objectweb.asm.ClassWriter;
  35 import jdk.internal.org.objectweb.asm.Opcodes;
  36 import jdk.internal.org.objectweb.asm.util.CheckClassAdapter;
  37 
  38 /**
  39  * Main class for the "nasgen" tool.
  40  *
  41  */
  42 public class Main {
  43     /**
  44      * ASM version to be used by nasgen tool.
  45      */
  46     public static final int ASM_VERSION = Opcodes.ASM5;
  47 
  48     private static final boolean DEBUG = Boolean.getBoolean("nasgen.debug");
  49 
  50     private interface ErrorReporter {
  51         public void error(String msg);
  52     }
  53 
  54     /**
  55      * Public entry point for Nasgen if invoked from command line. Nasgen takes three arguments
  56      * in order: input directory, package list, output directory
  57      *
  58      * @param args argument vector
  59      */
  60     public static void main(final String[] args) {
  61         final ErrorReporter reporter = new ErrorReporter() {
  62             @Override
  63             public void error(final String msg) {
  64                 Main.error(msg, 1);
  65             }
  66         };




  26 package jdk.nashorn.internal.tools.nasgen;
  27 
  28 import java.io.File;
  29 import java.io.FileInputStream;
  30 import java.io.FileOutputStream;
  31 import java.io.IOException;
  32 import java.io.PrintWriter;
  33 import jdk.internal.org.objectweb.asm.ClassReader;
  34 import jdk.internal.org.objectweb.asm.ClassWriter;
  35 import jdk.internal.org.objectweb.asm.Opcodes;
  36 import jdk.internal.org.objectweb.asm.util.CheckClassAdapter;
  37 
  38 /**
  39  * Main class for the "nasgen" tool.
  40  *
  41  */
  42 public class Main {
  43     /**
  44      * ASM version to be used by nasgen tool.
  45      */
  46     public static final int ASM_VERSION = Opcodes.ASM7;
  47 
  48     private static final boolean DEBUG = Boolean.getBoolean("nasgen.debug");
  49 
  50     private interface ErrorReporter {
  51         public void error(String msg);
  52     }
  53 
  54     /**
  55      * Public entry point for Nasgen if invoked from command line. Nasgen takes three arguments
  56      * in order: input directory, package list, output directory
  57      *
  58      * @param args argument vector
  59      */
  60     public static void main(final String[] args) {
  61         final ErrorReporter reporter = new ErrorReporter() {
  62             @Override
  63             public void error(final String msg) {
  64                 Main.error(msg, 1);
  65             }
  66         };


< prev index next >