|
||||||||||
| 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
public class SPGen
Generator for .spt->.java.
| Constructor Summary | |
|---|---|
SPGen(java.lang.String cn,
java.io.BufferedReader i,
java.io.PrintWriter o)
Get a new SPGen from the given BufferedReader. |
|
| Method Summary | |
|---|---|
void |
addInterface(java.lang.String intf)
Add an interface to the implements line. |
void |
addInterfaces(java.util.Collection<java.lang.String> set)
Add a collection of interfaces. |
void |
generate()
Perform the actual generation. |
static boolean |
isValidJDBCType(java.lang.String name)
Return true if this is a valid JDBC type. |
static void |
main(java.lang.String[] argv)
Usage: SPGen filename |
void |
setDbcpSuperclass(java.lang.String sc)
Set the DBCP superclass of the generated java class. |
void |
setDbspSuperclass(java.lang.String sc)
Set the DBSP superclass of the generated java class. |
void |
setSuperclass(java.lang.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(java.lang.String cn,
java.io.BufferedReader i,
java.io.PrintWriter o)
cn - the name of the class to generatei - the stream containing the spt sourceo - the stream to which the java code will be written| Method Detail |
|---|
public void setVerbose(boolean to)
public void setSuperclass(java.lang.String sc)
public void addInterface(java.lang.String intf)
intf - the fully qualified name of the interface to implementpublic void addInterfaces(java.util.Collection<java.lang.String> set)
set - the set of interfacespublic void setDbcpSuperclass(java.lang.String sc)
public void setDbspSuperclass(java.lang.String sc)
public static boolean isValidJDBCType(java.lang.String name)
name - the name of the field to test
public void generate()
throws java.lang.Exception
java.lang.Exception - if there's a problem parsing or writing
public static void main(java.lang.String[] argv)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||