1 /*
   2  * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 /*
  26  * COMPONENT_NAME: idl.parser
  27  *
  28  * ORIGINS: 27
  29  *
  30  * Licensed Materials - Property of IBM
  31  * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999
  32  * RMI-IIOP v1.0
  33  *
  34  */
  35 
  36 package com.sun.tools.corba.se.idl;
  37 
  38 // NOTES:
  39 
  40 import java.io.PrintWriter;
  41 import java.util.Hashtable;
  42 
  43 /**
  44  * This is the symbol table entry for valuesBoxes.
  45  **/
  46 public class ValueBoxEntry extends ValueEntry
  47 {
  48   protected ValueBoxEntry ()
  49   {
  50     super ();
  51   } // ctor
  52 
  53   protected ValueBoxEntry (ValueBoxEntry that)
  54   {
  55     super (that);
  56   } // ctor
  57 
  58   protected ValueBoxEntry (SymtabEntry that, IDLID clone)
  59   {
  60     super (that, clone);
  61   } // ctor
  62 
  63   public Object clone ()
  64   {
  65     return new ValueBoxEntry (this);
  66   } // clone
  67 
  68   /** Invoke the interface generator.
  69       @param symbolTable the symbol table is a hash table whose key is a fully
  70        qualified type name and whose value is a SymtabEntry or a subclass of
  71        SymtabEntry.
  72       @param stream the stream to which the generator should sent its output.
  73       @see SymtabEntry */
  74   public void generate (Hashtable symbolTable, PrintWriter stream)
  75   {
  76      valueBoxGen.generate (symbolTable, this, stream);
  77   } // generate
  78 
  79   /** Access the value generator.
  80       @returns an object which implements the ValueGen interface.
  81       @see ValueGen */
  82   public Generator generator ()
  83   {
  84     return valueBoxGen;
  85   } // generator
  86 
  87   static ValueBoxGen valueBoxGen;
  88 } // class ValueEntry