|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ph.pr.parser.vbs2java.VBS2Java
public class VBS2Java
Convert VBScript to Java
Field Summary |
---|
Fields inherited from interface com.ph.pr.parser.vbs2java.VB2JavaConstants |
---|
GRAMMAR, GRAMMAR_RESOURCE, VB2JAVA_GENERATED_PACKAGE, VB2JAVA_PACKAGE |
Fields inherited from interface com.ph.pr.parser.ParserConstants |
---|
GENERATED_PKG_SUFFIX |
Constructor Summary | |
---|---|
VBS2Java()
|
Method Summary | |
---|---|
private static void |
initialize()
|
static void |
main(java.lang.String[] args)
Spits out Java code to stdout |
static void |
translate(java.lang.String vbs)
Translate a VBScript into a Java class by performing the following steps: Pre-process the original VBScript
Convert VBScript to Java by calling
ASTBuilder.parse(ClassLoader, String, String) and
VBSVisitor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VBS2Java()
Method Detail |
---|
private static void initialize()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- takes a single argument - a VBS file to translate
java.lang.Exception
public static void translate(java.lang.String vbs) throws goldengine.java.ParserException, java.io.IOException
Pre-process the original VBScript
ASTBuilder.parse(ClassLoader, String, String)
and
VBSVisitor
. If the script is named ending with -EDIT,
the resulting class will implement InterFieldEditProcessor
,
otherwise, it will implement AddendaBuilder
. In both cases, the
result will be a subclass of ACHAppBase
. The resulting Java file
will be placed into #ACHAPPS_GENERATED_PACKAGE
.version
package (where version is com.ph.pr.parser.vbs2java.VB2JavaConstants#VB2JAVA_ROOT
.
Pipeline#INTERMEDIATE_DIR
vbs
- VBS to translate (assumed to be in
App2HtmlConstants#APP2HTML_OUTPUT
directory).version
- Version of the application (see XXX versioning)
goldengine.java.ParserException
- whenever the vbs
java.io.IOException
- obviously
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |