| java.lang.Object org.jaffa.tools.patternengine.PatternGenerator
PatternGenerator | public class PatternGenerator (Code) | | Use this class to perform code generation based on the input pattern meta data file.
|
Method Summary | |
public void | destroy() This method is to be invoked, when done with the code generation. | public static void | main(String[] args) This will create an instance of the PatternGenerator, passing the URL corresponding to the input argument.
It will then invoke the 'processPattern()' method.
If the argument is a directory, then the above process will be invoked for each file in the directory.
If the '-r' argument is passed, then it will recursively scan the directory for files, and invoke the pattern generation for each file.
Parameters: args - This expects at least one argument to be passed in. | public void | processPattern() This will invoke the Pattern Generation routine. |
destroy | public void destroy()(Code) | | This method is to be invoked, when done with the code generation. It will free up the resources.
|
main | public static void main(String[] args)(Code) | | This will create an instance of the PatternGenerator, passing the URL corresponding to the input argument.
It will then invoke the 'processPattern()' method.
If the argument is a directory, then the above process will be invoked for each file in the directory.
If the '-r' argument is passed, then it will recursively scan the directory for files, and invoke the pattern generation for each file.
Parameters: args - This expects at least one argument to be passed in. This should represent the patternMetaData file, relative to the classpath. If a directory of passed, then the optional second argument determines, if a recursive search is to be performed on the directory. |
|
|