|
||||||||||
| 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(String cn,
BufferedReader i,
PrintWriter o)
Get a new SPGen from the given BufferedReader. |
|
| Method Summary | |
|---|---|
void |
addInterface(String intf)
Add an interface to the implements line. |
void |
addInterfaces(Collection<String> set)
Add a collection of interfaces. |
void |
generate()
Perform the actual generation. |
static boolean |
isValidJDBCType(String name)
Return true if this is a valid JDBC type. |
static void |
main(String[] argv)
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 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(String sc)
public void addInterface(String intf)
intf - the fully qualified name of the interface to implementpublic void addInterfaces(Collection<String> set)
set - the set of interfacespublic 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[] argv)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||