|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.util.SPGen
Generator for .spt->.java.
| Constructor Summary | |
SPGen(String cn,
BufferedReader i,
PrintWriter o)
Get a new SPGen from the given BufferedReader. |
|
| Method Summary | |
void |
generate()
Perform the actual generation. |
static boolean |
isValidJDBCType(String name)
Return true if this is a valid JDBC type. |
static void |
main(String[] args)
Usage: SPGen filename |
void |
setDbcpSuperclass(String sc)
Set the DBCP superclass of the generated java class. |
void |
setDbspSuperclass(String sc)
Set the DBSP superclass of the generated java class. |
void |
setSuperclass(String sc)
Set the superclass of the generated java class. |
void |
setVerbose(boolean to)
Set the verbosity flag. |
| Methods inherited from class net.spy.SpyObject |
getLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SPGen(String cn,
BufferedReader i,
PrintWriter o)
cn - the name of the class to generate| Method Detail |
public void setVerbose(boolean to)
public void setSuperclass(String sc)
public void setDbcpSuperclass(String sc)
public void setDbspSuperclass(String sc)
public static boolean isValidJDBCType(String name)
name - the name of the field to test
public void generate()
throws Exception
Exception - if there's a problem parsing or writing
public static void main(String[] args)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||