gnu.jel.TableWriter Maven / Gradle / Ivy
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* $Id: TableKeeper.java,v 1.13 2004/03/16 15:20:52 metlov Exp $
*
* This file is part of the Java Expressions Library (JEL).
* For more information about JEL visit :
* http://kinetic.ac.donetsk.ua/JEL/
*
* (c) 1998 -- 2007 by Konstantin Metlov([email protected]);
*
* JEL is Distributed under the terms of GNU General Public License.
* This code comes with ABSOLUTELY NO WARRANTY.
* For license details see COPYING file in this directory.
*/
package gnu.jel;
import java.util.*;
import java.io.*;
import gnu.jel.debug.Debug;
public class TableWriter {
private static final Hashtable tables =
new Hashtable();
private static final ResourceBundle msgs = null;
public static void main(String[] args) {
if (Debug.enabled) {
try {
// Tables from gnu.jel.TypesStack
String[] specialTypesStr={
null, // Boolean.TYPE, // 0 0x00
null, // Byte.TYPE, // 1 0x01
null, // Character.TYPE, // 2 0x02
null, // Short.TYPE, // 3 0x03
null, // Integer.TYPE, // 4 0x04
null, // Long.TYPE, // 5 0x05
null, // Float.TYPE, // 6 0x06
null, // Double.TYPE, // 7 0x07
null, // Generic reference // 8 0x08
null, // Void.TYPE, // 9 0x09
"java.lang.String", //[TSB] // 10 0x0A
"java.lang.String", // 11 0x0B
"gnu.jel.reflect.Boolean", // 12 0x0C
"gnu.jel.reflect.Byte", // 13 0x0D
"gnu.jel.reflect.Character", // 14 0x0E
"gnu.jel.reflect.Short", // 15 0x0F
"gnu.jel.reflect.Integer", // 16 0x10
"gnu.jel.reflect.Long", // 17 0x11
"gnu.jel.reflect.Float", // 18 0x12
"gnu.jel.reflect.Double", // 19 0x13
"java.lang.Boolean", // 20 0x14
"java.lang.Byte", // 21 0x15
"java.lang.Character", // 22 0x16
"java.lang.Short", // 23 0x17
"java.lang.Integer", // 24 0x18
"java.lang.Long", // 25 0x19
"java.lang.Float", // 26 0x1A
"java.lang.Double", // 27 0x1B
"gnu.jel.reflect.String" // 29 0x1C
};
tables.put("specialTypes",specialTypesStr);
Class[] specialTypes=new Class[specialTypesStr.length];
for (int i=10; i
© 2015 - 2024 Weber Informatics LLC | Privacy Policy