|
From: Alexander P. <dea...@us...> - 2002-06-10 08:31:02
|
Update of /cvsroot/vesuf/vesuf/src/org/vesuf/util
In directory usw-pr-cvs1:/tmp/cvs-serv24677/src/org/vesuf/util
Modified Files:
ProxyServlet.java
Added Files:
SReflect.java
Log Message:
made everything compile again
fixed bugs in text-based choice delegates
--- NEW FILE: SReflect.java ---
package org.vesuf.util;
import java.awt.*;
import java.util.*;
import java.lang.reflect.*;
/**
* This class provides several useful static reflection util methods.
*/
public class SReflect
{
/** Mapping from basic class name -> object type(class). */
protected static Hashtable basictypes;
/** Mapping from basic class name -> basic class. */
protected static Hashtable classfornames;
static
{
[...986 lines suppressed...]
o = SReflect.processJavaString("Color(int: 0, int: 255, int: 0)", "java.awt");
System.out.println("hier: "+o);
o = SReflect.processJavaString("Integer.parseInt(\"42\")", "java.lang");
System.out.println("hier: "+o);
o = SReflect.processJavaString("Integer.parseInt(42)", "java.lang");
System.out.println("hier: "+o);
}
catch(Exception e)
{
e.printStackTrace();
}
}
public static String a = "a is great and beautiful";
}
Index: ProxyServlet.java
===================================================================
RCS file: /cvsroot/vesuf/vesuf/src/org/vesuf/util/ProxyServlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProxyServlet.java 13 Dec 2001 12:21:04 -0000 1.3
--- ProxyServlet.java 10 Jun 2002 08:30:58 -0000 1.4
***************
*** 1,3 ****
! package org.inspectionj.util;
import java.io.*;
--- 1,3 ----
! package org.vesuf.util;
import java.io.*;
|