Class Main
java.lang.Object
org.mozilla.javascript.tools.jsc.Main
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private ClassCompiler
private CompilerEnvirons
private String
private boolean
private ToolErrorReporter
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
addFormatedError
(String message) private static void
Print a usage message.(package private) String
getClassName
(String name) Verify that class file names are legal Java identifiers.private File
getOutputFile
(File parentDir, String className) static void
Main entry point.private static void
String[]
processOptions
(String[] args) Parse arguments.void
processSource
(String[] filenames) Compile JavaScript source.private String
readSource
(File f)
-
Field Details
-
printHelp
private boolean printHelp -
reporter
-
compilerEnv
-
compiler
-
targetName
-
targetPackage
-
destinationDir
-
characterEncoding
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Main entry point. Process arguments as would a normal Java program. Then set up the execution environment and begin to compile scripts. -
processOptions
-
badUsage
Print a usage message. -
processSource
Compile JavaScript source. -
readSource
-
getOutputFile
- Throws:
IOException
-
getClassName
-
p
-
addError
-
addFormatedError
-