net.jangaroo.jooc
Class Jooc

java.lang.Object
  extended by net.jangaroo.jooc.JangarooParser
      extended by net.jangaroo.jooc.Jooc
All Implemented Interfaces:
Jooc

public class Jooc
extends JangarooParser
implements Jooc

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 NATIVE_ANNOTATION_NAME
           
static String PUBLIC_API_EXCLUSION_ANNOTATION_NAME
           
static String PUBLIC_API_INCLUSION_ANNOTATION_NAME
           
 
Fields inherited from class net.jangaroo.jooc.JangarooParser
globalScope, JOO_API_IN_JAR_DIRECTORY_PREFIX, log
 
Fields inherited from interface net.jangaroo.jooc.api.Jooc
AS_SUFFIX, AS_SUFFIX_NO_DOT, INPUT_FILE_SUFFIX, OUTPUT_FILE_SUFFIX
 
Constructor Summary
Jooc()
           
Jooc(JoocConfiguration config)
           
Jooc(JoocConfiguration config, CompileLog log)
           
 
Method Summary
 JoocConfiguration getConfig()
           
static String getResultCodeDescription(int resultCode)
           
static void main(String[] argv)
           
protected  void processSource(File file)
           
 CompilationResult run()
           
static int run(String[] argv, CompileLog log)
           
 void setConfig(JoocConfiguration config)
           
 File writeOutput(File sourceFile, CompilationUnit compilationUnit, CompilationUnitSinkFactory writerFactory, boolean verbose)
           
 
Methods inherited from class net.jangaroo.jooc.JangarooParser
declareValues, doParse, error, error, error, error, error, findSource, getCompilationsUnit, getInputSourceFileName, getLog, getPackageIdes, importSource, parse, resolveImport, setConfig, setLog, setUp, tearDown, warning, warning, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jangaroo.jooc.api.Jooc
setLog
 

Field Detail

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

PUBLIC_API_EXCLUSION_ANNOTATION_NAME

public static final String PUBLIC_API_EXCLUSION_ANNOTATION_NAME
See Also:
Constant Field Values

PUBLIC_API_INCLUSION_ANNOTATION_NAME

public static final String PUBLIC_API_INCLUSION_ANNOTATION_NAME
See Also:
Constant Field Values

NATIVE_ANNOTATION_NAME

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

Jooc

public Jooc()

Jooc

public Jooc(JoocConfiguration config)

Jooc

public Jooc(JoocConfiguration config,
            CompileLog log)
Method Detail

getConfig

public JoocConfiguration getConfig()
Overrides:
getConfig in class JangarooParser

setConfig

public void setConfig(JoocConfiguration config)
Specified by:
setConfig in interface Jooc

run

public CompilationResult run()
Specified by:
run in interface Jooc

writeOutput

public File writeOutput(File sourceFile,
                        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

run

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

main

public static void main(String[] argv)


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