au.gov.tas.dpiwe.mr.tool
Class WrapperMaker
java.lang.Object
au.gov.tas.dpiwe.mr.tool.WrapperMaker
public class WrapperMaker
- extends Object
This tool creates ObjectWrapper source files.
- Since:
- Mr Architecture 1.8
- Version:
- 1.0.0.0
- Author:
- Kade Hansson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrapperMaker
public WrapperMaker()
main
public static void main(String[] argv)
throws Exception
- Initiates the WrapperMaker tool.
- Parameters:
argv - first and only argument is the qualified class name of class
or interface to make an instant wrapper class for.
- Throws:
IOException - if the input file could not be read or the output
file could not be written.
Exception - if something else goes wrong.
generateWrapperClassSource
public static void generateWrapperClassSource(PrintWriter output,
Class type)
throws IOException
- Generate the object wrapper source code for a particular type.
- Parameters:
type - the superclass or implemented interface of this object wrapper.output - the PrintWriter to which the source code should be written.
- Throws:
IOException - if the input file could not be read or the output
file could not be written.