org.mozilla.javascript
Class RhinoToAstTranslator

java.lang.Object
  extended by org.mozilla.javascript.RhinoToAstTranslator

public class RhinoToAstTranslator
extends java.lang.Object


Field Summary
static java.lang.String CTOR_CALL_FN_NAME
          name used for constructor calls, used to distinguish them from standard function calls
static java.lang.String STANDARD_CALL_FN_NAME
          a dummy name to use for standard function calls, only used to distinguish them from constructor calls
 
Constructor Summary
RhinoToAstTranslator(CAst Ast, SourceModule M, java.lang.String scriptName)
           
 
Method Summary
 CAstEntity translate()
          parse the JavaScript code using Rhino, and then translate the resulting AST to CAst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD_CALL_FN_NAME

public static final java.lang.String STANDARD_CALL_FN_NAME
a dummy name to use for standard function calls, only used to distinguish them from constructor calls

See Also:
Constant Field Values

CTOR_CALL_FN_NAME

public static final java.lang.String CTOR_CALL_FN_NAME
name used for constructor calls, used to distinguish them from standard function calls

See Also:
Constant Field Values
Constructor Detail

RhinoToAstTranslator

public RhinoToAstTranslator(CAst Ast,
                            SourceModule M,
                            java.lang.String scriptName)
Method Detail

translate

public CAstEntity translate()
                     throws java.io.IOException
parse the JavaScript code using Rhino, and then translate the resulting AST to CAst

Throws:
java.io.IOException