|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ph.pr.parser.vbs2java.deprecated.Translator
public class Translator
A translator of VBScript to Java. Mostly does a good job, but does not have the capability to figure out operator precedence, since it is not a true parser.
com.ph.pr.parser.vb2java.VBSVisitor
Field Summary | |
---|---|
(package private) static java.lang.String |
appsPKG
Deprecated. |
(package private) static boolean |
atHome
Deprecated. |
(package private) static boolean |
chatty
Deprecated. |
(package private) static java.lang.String |
comment
Deprecated. |
(package private) static java.io.FileOutputStream |
consoleOut
Deprecated. |
(package private) static java.io.File |
consoleOutput
Deprecated. |
(package private) static java.lang.String |
corePKG
Deprecated. |
(package private) static java.lang.String |
currentFunctionName
Deprecated. |
(package private) static java.util.HashMap |
dimmer
Deprecated. |
(package private) static boolean |
doExit
Deprecated. |
(package private) static boolean |
firstCase
Deprecated. |
(package private) static boolean |
isOk
Deprecated. |
(package private) static int |
nestingLevel
Deprecated. |
(package private) static int |
nestingLevelWas
Deprecated. |
(package private) static java.io.PrintWriter |
pw
Deprecated. |
private static java.util.Map |
SPECIAL_CASES
Deprecated. This is for special-case pre-processing (mostly precedence errors), since it's not worth it to go all-out and parse VB, nor is it worth correcting these particular special cases, as VBS files could change. |
private static java.lang.String |
SPECIAL_COMMENT
Deprecated. |
(package private) static java.io.PrintStream |
stderr
Deprecated. |
(package private) static java.io.PrintStream |
stdout
Deprecated. |
(package private) static Variable |
varInSelect
Deprecated. |
Constructor Summary | |
---|---|
Translator()
Deprecated. |
Method Summary | |
---|---|
private static void |
close()
Deprecated. |
private static java.lang.String |
doListOfTerms(java.lang.String tline)
Deprecated. |
private static void |
ensure(boolean b)
Deprecated. |
private static Term |
evalBoolean(java.lang.String expression)
Deprecated. |
(package private) static Term |
extractTerm(java.lang.String expr)
Deprecated. |
private static Oper |
fetchOper(java.lang.String remainder)
Deprecated. |
private static java.lang.String |
finishIt(boolean nestUp,
java.lang.String nline)
Deprecated. |
static int |
getEndOfFunc(java.lang.String rhs)
Deprecated. |
static java.lang.String |
getFileAsString(java.io.File file)
Deprecated. |
static boolean |
isNextFunction(java.lang.String rhs)
Deprecated. |
static void |
main(java.lang.String[] args)
Deprecated. |
private static void |
open(java.io.File file)
Deprecated. |
private static void |
out(java.lang.String string)
Deprecated. |
(package private) static java.lang.String |
parseLine(java.lang.String rline)
Deprecated. |
private static void |
regVar(java.lang.String var)
Deprecated. |
private static java.lang.String |
removeIt(java.lang.String vb,
java.lang.String string)
Deprecated. |
private static void |
setConsoleOutToFile(java.io.File refFile)
Deprecated. |
static java.io.File |
translate(java.io.File file)
Deprecated. |
private static void |
turnOffConsoleCapture()
Deprecated. |
private static void |
XXX_Edit_fix(java.lang.String editcodes,
java.lang.String badstring,
java.lang.String goodstring)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.Map SPECIAL_CASES
This is a map of VBS file names to an array of 2 Strings -- first one is regex to replace, second - the replacement.
private static final java.lang.String SPECIAL_COMMENT
static boolean atHome
static java.lang.String appsPKG
static java.lang.String corePKG
static java.io.PrintWriter pw
static boolean chatty
static java.util.HashMap dimmer
static java.lang.String currentFunctionName
static int nestingLevel
static int nestingLevelWas
static java.lang.String comment
static boolean firstCase
static Variable varInSelect
static boolean isOk
static boolean doExit
static java.io.FileOutputStream consoleOut
static java.io.File consoleOutput
static java.io.PrintStream stdout
static java.io.PrintStream stderr
Constructor Detail |
---|
public Translator()
Method Detail |
---|
public static int getEndOfFunc(java.lang.String rhs)
private static void XXX_Edit_fix(java.lang.String editcodes, java.lang.String badstring, java.lang.String goodstring)
public static java.lang.String getFileAsString(java.io.File file) throws java.io.IOException
java.io.IOException
public static boolean isNextFunction(java.lang.String rhs)
public static void main(java.lang.String[] args)
private static void turnOffConsoleCapture()
private static void setConsoleOutToFile(java.io.File refFile)
static Term extractTerm(java.lang.String expr)
static java.lang.String parseLine(java.lang.String rline)
private static void close()
private static java.lang.String doListOfTerms(java.lang.String tline)
tline
-
private static void ensure(boolean b)
private static Term evalBoolean(java.lang.String expression)
private static Oper fetchOper(java.lang.String remainder)
private static java.lang.String finishIt(boolean nestUp, java.lang.String nline)
private static void open(java.io.File file) throws java.io.IOException
java.io.IOException
private static void out(java.lang.String string)
private static void regVar(java.lang.String var)
private static java.lang.String removeIt(java.lang.String vb, java.lang.String string)
public static java.io.File translate(java.io.File file) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |