net.jangaroo.jooc
Class Jooc

java.lang.Object
  extended by net.jangaroo.jooc.JangarooParser
      extended by net.jangaroo.jooc.Jooc

public class Jooc
extends JangarooParser

The Jangaroo AS3-to-JS Compiler's main class.

Author:
Andreas Gawecki, Frank Wienberg

Field Summary
static String CLASS_LOADER_FULLY_QUALIFIED_NAME
           
static String CLASS_LOADER_NAME
           
static String CLASS_LOADER_PACKAGE_NAME
           
static String INPUT_FILE_SUFFIX
           
static String OUTPUT_FILE_SUFFIX
           
static int RESULT_CODE_COMPILATION_FAILED
           
static int RESULT_CODE_ILLEGAL_OPTION_VALUE
           
static int RESULT_CODE_INTERNAL_COMPILER_ERROR
           
static int RESULT_CODE_MISSING_OPTION_ARGUMENT
           
static int RESULT_CODE_OK
           
static int RESULT_CODE_UNRECOGNIZED_OPTION
           
 
Fields inherited from class net.jangaroo.jooc.JangarooParser
AS_SUFFIX, AS_SUFFIX_NO_DOT, globalScope, JOO_API_IN_JAR_DIRECTORY_PREFIX, log
 
Constructor Summary
Jooc(JoocConfiguration config)
           
Jooc(JoocConfiguration config, CompileLog log)
           
 
Method Summary
 JoocConfiguration getConfig()
           
static String getResultCodeDescription(int resultCode)
           
static void main(String[] argv)
           
protected static void printVersion()
           
protected  void processSource(File file)
           
 int run()
           
static int run(String[] argv, CompileLog log)
           
 void writeOutput(CompilationUnit compilationUnit, CompilationUnitSinkFactory writerFactory, boolean verbose)
           
 
Methods inherited from class net.jangaroo.jooc.JangarooParser
declareValues, doParse, error, error, error, error, findSource, getCompilationsUnit, getInputSourceFileName, getPackageIdes, importSource, parse, resolveImport, setUp, tearDown, warning, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_CODE_OK

public static final int RESULT_CODE_OK
See Also:
Constant Field Values

RESULT_CODE_COMPILATION_FAILED

public static final int RESULT_CODE_COMPILATION_FAILED
See Also:
Constant Field Values

RESULT_CODE_INTERNAL_COMPILER_ERROR

public static final int RESULT_CODE_INTERNAL_COMPILER_ERROR
See Also:
Constant Field Values

RESULT_CODE_UNRECOGNIZED_OPTION

public static final int RESULT_CODE_UNRECOGNIZED_OPTION
See Also:
Constant Field Values

RESULT_CODE_MISSING_OPTION_ARGUMENT

public static final int RESULT_CODE_MISSING_OPTION_ARGUMENT
See Also:
Constant Field Values

RESULT_CODE_ILLEGAL_OPTION_VALUE

public static final int RESULT_CODE_ILLEGAL_OPTION_VALUE
See Also:
Constant Field Values

INPUT_FILE_SUFFIX

public static final String INPUT_FILE_SUFFIX
See Also:
Constant Field Values

OUTPUT_FILE_SUFFIX

public static final String OUTPUT_FILE_SUFFIX
See Also:
Constant Field Values

CLASS_LOADER_NAME

public static final String CLASS_LOADER_NAME
See Also:
Constant Field Values

CLASS_LOADER_PACKAGE_NAME

public static final String CLASS_LOADER_PACKAGE_NAME
See Also:
Constant Field Values

CLASS_LOADER_FULLY_QUALIFIED_NAME

public static final String CLASS_LOADER_FULLY_QUALIFIED_NAME
See Also:
Constant Field Values
Constructor Detail

Jooc

public Jooc(JoocConfiguration config)

Jooc

public Jooc(JoocConfiguration config,
            CompileLog log)
Method Detail

getConfig

public JoocConfiguration getConfig()
Overrides:
getConfig in class JangarooParser

run

public int run()

writeOutput

public void writeOutput(CompilationUnit compilationUnit,
                        CompilationUnitSinkFactory writerFactory,
                        boolean verbose)
                 throws CompilerError
Throws:
CompilerError

getResultCodeDescription

public static String getResultCodeDescription(int resultCode)

processSource

protected void processSource(File file)
                      throws IOException
Throws:
IOException

printVersion

protected static void printVersion()

run

public static int run(String[] argv,
                      CompileLog log)

main

public static void main(String[] argv)


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.