KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > CodeGen > Output


1 /* $Id: Output.java,v 1.1.1.1 2003/02/11 16:19:41 bures Exp $ */
2 package SOFA.SOFAnode.Made.CodeGen;
3 import SOFA.SOFAnode.Made.Logger;
4
5 /** Output of generator.
6   *
7   * @author Petr Hnetynka
8   */

9 public class Output {
10   static public Logger out;
11   
12   /** Set concrete logger.
13     *
14     * @param o logger
15     * @exception NullPointerException throws if parameter <tt>o</tt> is <tt>null</tt>
16     */

17   static public void setOut(Logger o) {
18     if (o!=null)
19       out = o;
20     else
21       throw new NullPointerException JavaDoc("Bad logger object for compiler output.");
22   }
23 }
24
Popular Tags