Package net.jangaroo.jooc
Class Jooc
- java.lang.Object
-
- net.jangaroo.jooc.JangarooParser
-
- net.jangaroo.jooc.Jooc
-
- All Implemented Interfaces:
net.jangaroo.jooc.api.Jooc,CompilationUnitRegistry,CompilationUnitResolver
public class Jooc extends JangarooParser implements net.jangaroo.jooc.api.Jooc
The Jangaroo AS3-to-JS Compiler's main class.- Author:
- Andreas Gawecki, Frank Wienberg
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.JangarooParser
JOO_API_IN_SWC_DIRECTORY_PREFIX, log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopySassFiles()net.jangaroo.jooc.config.JoocConfigurationgetConfig()StringgetOutputSuffix()static StringgetOutputSuffix(boolean isMigrateToTypeScript)static StringgetResultCodeDescription(int resultCode)static voidmain(String[] argv)protected voidprocessSource(File file)net.jangaroo.jooc.api.CompilationResultrun()static intrun(String[] argv, net.jangaroo.jooc.api.CompileLog log)voidsetConfig(net.jangaroo.jooc.config.JoocConfiguration config)FilewriteOutput(File sourceFile, CompilationUnit compilationUnit, CompilationUnitSinkFactory writerFactory, boolean verbose)-
Methods inherited from class net.jangaroo.jooc.JangarooParser
createPropertiesClassReader, declareValues, doParse, error, error, error, error, error, error, error, fileToSymbol, findSource, getAnyType, getCompilableSuffixes, getCompilationUnit, getCompilationUnits, getInputSource, getInputSourceFileName, getLog, getMxmlComponentRegistry, getPackageIdes, getVoidType, implementsInterface, implementsInterface, importSource, isClass, resolveCompilationUnit, resolveImport, setCompilableSuffixes, setConfig, setLog, setUp, tearDown, warning, warning, warning
-
-
-
-
Field Detail
-
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
-
DEPRECATED_ANNOTATION_NAME
public static final String DEPRECATED_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
NATIVE_ANNOTATION_NAME
public static final String NATIVE_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
NATIVE_ANNOTATION_REQUIRE_PROPERTY
public static final String NATIVE_ANNOTATION_REQUIRE_PROPERTY
- See Also:
- Constant Field Values
-
RENAME_ANNOTATION_NAME
public static final String RENAME_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
MIXIN_ANNOTATION_NAME
public static final String MIXIN_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
MIXIN_HOOK_ANNOTATION_NAME
public static final String MIXIN_HOOK_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
MIXIN_HOOK_ANNOTATION_EXTENDED_ATTRIBUTE_NAME
public static final String MIXIN_HOOK_ANNOTATION_EXTENDED_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
MIXIN_HOOK_ANNOTATION_DEFAULT_ATTRIBUTE_NAME
public static final String MIXIN_HOOK_ANNOTATION_DEFAULT_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
MIXIN_HOOK_ANNOTATION_ATTRIBUTE_NAMES
public static final Set<String> MIXIN_HOOK_ANNOTATION_ATTRIBUTE_NAMES
-
BINDABLE_ANNOTATION_NAME
public static final String BINDABLE_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
EXT_CONFIG_ANNOTATION_NAME
public static final String EXT_CONFIG_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
EXT_PRIVATE_ANNOTATION_NAME
public static final String EXT_PRIVATE_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
EMBED_ANNOTATION_NAME
public static final String EMBED_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
EMBED_ANNOTATION_SOURCE_PROPERTY
public static final String EMBED_ANNOTATION_SOURCE_PROPERTY
- See Also:
- Constant Field Values
-
EMBED_ANNOTATION_MIME_TYPE_PROPERTY
public static final String EMBED_ANNOTATION_MIME_TYPE_PROPERTY
- See Also:
- Constant Field Values
-
EMBED_ANNOTATION_FONT_NAME_PROPERTY
public static final String EMBED_ANNOTATION_FONT_NAME_PROPERTY
- See Also:
- Constant Field Values
-
RESOURCE_BUNDLE_ANNOTATION_NAME
public static final String RESOURCE_BUNDLE_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
ARRAY_ELEMENT_TYPE_ANNOTATION_NAME
public static final String ARRAY_ELEMENT_TYPE_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
EVENT_ANNOTATION_NAME
public static final String EVENT_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
EVENT_ANNOTATION_NAME_ATTRIBUTE_NAME
public static final String EVENT_ANNOTATION_NAME_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
EVENT_ANNOTATION_TYPE_ATTRIBUTE_NAME
public static final String EVENT_ANNOTATION_TYPE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
LAZY_ANNOTATION_NAME
public static final String LAZY_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
PARAMETER_ANNOTATION_NAME
public static final String PARAMETER_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
PARAMETER_ANNOTATION_REQUIRED_PROPERTY
public static final String PARAMETER_ANNOTATION_REQUIRED_PROPERTY
- See Also:
- Constant Field Values
-
PARAMETER_ANNOTATION_COERCE_TO_PROPERTY
public static final String PARAMETER_ANNOTATION_COERCE_TO_PROPERTY
- See Also:
- Constant Field Values
-
COERCE_TO_VALUE_PROPERTIES_CLASS
public static final String COERCE_TO_VALUE_PROPERTIES_CLASS
- See Also:
- Constant Field Values
-
COERCE_TO_VALUE_KEYOF_PREFIX
public static final String COERCE_TO_VALUE_KEYOF_PREFIX
- See Also:
- Constant Field Values
-
RETURN_ANNOTATION_NAME
public static final String RETURN_ANNOTATION_NAME
- See Also:
- Constant Field Values
-
TS_SUFFIX
public static final String TS_SUFFIX
- See Also:
- Constant Field Values
-
D_TS_SUFFIX
public static final String D_TS_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOutputSuffix
public static String getOutputSuffix(boolean isMigrateToTypeScript)
-
getConfig
public net.jangaroo.jooc.config.JoocConfiguration getConfig()
- Overrides:
getConfigin classJangarooParser
-
setConfig
public void setConfig(net.jangaroo.jooc.config.JoocConfiguration config)
- Specified by:
setConfigin interfacenet.jangaroo.jooc.api.Jooc
-
getOutputSuffix
public String getOutputSuffix()
-
run
public net.jangaroo.jooc.api.CompilationResult run()
- Specified by:
runin interfacenet.jangaroo.jooc.api.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
-
copySassFiles
protected void copySassFiles() throws IOException- Throws:
IOException
-
run
public static int run(String[] argv, net.jangaroo.jooc.api.CompileLog log)
-
main
public static void main(String[] argv)
-
-