public class JSGoogConfiguration extends JSConfiguration
JSGoogConfiguration class holds all compiler arguments needed for
compiling ActionScript to JavaScript the 'goog' way.
Specific flags are implemented here for the configuration to be loaded by the
configure() method of MXMLJSC.
This class inherits all compiler arguments from the MXMLC compiler.
| Modifier and Type | Field and Description |
|---|---|
protected String |
closureLib |
protected List<String> |
jsCompilerOptions |
protected String |
jsGetterPrefix |
protected List<String> |
jsOutputOptimizations |
protected String |
jsSetterPrefix |
protected List<String> |
sdkJSLib |
targetsAIR_HOME_TOKEN, AS3, date, dateFormat, DEFAULT_OUTPUT_DIRECTORY_TOKEN, ES, FLEX_VERSION_TOKEN, includeFilesNamePath, langs, locales, MXML_CURRENT_VERSION, MXML_EARLIEST_MAJOR_VERSION, MXML_LATEST_MAJOR_VERSION, MXML_LATEST_MINOR_VERSION, MXML_VERSION_2_0, MXML_VERSION_2_0_1, MXML_VERSION_3_0, MXML_VERSION_4_0, MXML_VERSION_4_5, MXML_VERSION_4_6, MXML_VERSION_4_7, PLAYERGLOBAL_HOME_TOKEN, reportMissingCompilerLibraries, reportMissingCompilerSwfLibraries, STRICT, SWC_AIRGLOBAL, TARGET_PLAYER_MAJOR_VERSION_MIN, TARGET_PLAYER_MINOR_VERSION_MIN| Constructor and Description |
|---|
JSGoogConfiguration() |
getCompilerJsExternalLibraryPath, getCompilerJsLibraryPath, getCompilerJsNamespacesManifestMappings, getCompilerTargets, getJsCompilerDefine, getJsComplexImplicitCoercions, getJsDefaultInitializers, getJsDynamicAccessUnknownMembers, getJsLoadConfig, getJsOutput, getJsResolveUncertain, getJsVectorEmulationClass, getJsVectorIndexChecks, getJsxFactory, getModuleOutput, getOutput, getSourceMap, getSourceMapSourceRoot, setCompilerJsExternalLibraryPath, setCompilerJsLibraryPath, setCompilerJsNamespacesNamespace, setCompilerTargets, setJsCompilerDefine, setJsComplexImplicitCoercions, setJsDefaultInitializers, setJsDynamicAccessUnknownMembers, setJsLoadConfig, setJsOutput, setJSOutputType, setJsResolveUncertain, setJsVectorEmulationClass, setJsVectorIndexChecks, setJsxFactory, setModuleOutput, setSourceMap, setSourceMapSourceRootaddThemeCssFiles, assertThatAllPathsAreDirectories, csetCompilerWarnDuplicateVariableDef, debug, expandTokens, expandTokens, getAdjustOpDebugLine, getAliases, getAllowSourcePathOverlap, getApiReport, getApplicationDomain, getBindingEventHandlerClass, getBindingEventHandlerEvent, getBindingEventHandlerInterface, getBindingValueChangeEvent, getBindingValueChangeEventKind, getByteArrayEmbedClass, getCompilerAccessible, getCompilerActionscriptFileEncoding, getCompilerAllowAbstractClasses, getCompilerAllowImportAliases, getCompilerAllowPrivateConstructors, getCompilerAllowPrivateNameConflicts, getCompilerAllowSubclassOverrides, getCompilerCompatibilityVersion, getCompilerCompatibilityVersionString, getCompilerContextRoot, getCompilerDefaultsCssUrl, getCompilerDefine, getCompilerDoc, getCompilerExternalLibraryPath, getCompilerGenerateAbstractSyntaxTree, getCompilerGeneratedDirectory, getCompilerIncludeLibraries, getCompilerInfoFlex, getCompilerIsolateStyles, getCompilerKeepAs3Metadata, getCompilerLibraryPath, getCompilerLocales, getCompilerMinimumSupportedVersion, getCompilerMinimumSupportedVersionString, getCompilerMxmlCompatibilityVersion, getCompilerMxmlCompatibilityVersionString, getCompilerMxmlForceLocalId, getCompilerMxmlImplicitImports, getCompilerMxmlMajorCompatibilityVersion, getCompilerMxmlMinimumSupportedVersion, getCompilerMxmlMinimumSupportedVersionString, getCompilerMxmlMinorCompatibilityVersion, getCompilerMxmlRevisionCompatibilityVersion, getCompilerNamespacesManifestMappings, getCompilerOptimize, getCompilerPreloader, getCompilerResourceBundlePathForLocale, getCompilerServices, getCompilerSourcePath, getCompilerSourcePathInfo, getCompilerStrictIdentifierNames, getCompilerSwfExternalLibraryPath, getCompilerSwfLibraryPath, getCompilerThemeCssFiles, getCompilerThemeFiles, getCompilingForAIR, getComponentFactoryClass, getComponentFactoryInterface, getConfigurationProblems, getCreateTargetWithErrors, getDebugPassword, getDefaultBackgroundColor, getDefaultFrameRate, getDefaultHeight, getDefaultsCSSFiles, getDefaultWidth, getDependencyGraphOutput, getDiagnosticsLevel, getDumpConfig, getEnableRuntimeDesignLayers, getEnableSwcVersionFiltering, getErrorProblems, getExcludeDefaultsCSSFiles, getExterns, getFileSpecs, getForceRsls, getFrameList, getFxgBaseClass, getIgnoreProblems, getIncludeClasses, getIncludeFiles, getIncludeInheritanceDependenciesOnly, getIncludeLookupOnly, getIncludeNamespaces, getIncludeResourceBundles, getIncludes, getIncludeSources, getIncludeStyleSheets, getLinkReport, getLoadConfig, getLocaleDependentSources, getMainDefinition, getMetadataDate, getMetadataDateFormat, getMobile, getOutputPath, getOutputSwcAsDirectory, getPreloader, getProxyBaseClass, getRawMetadata, getRemoveDeadCode, getRemoveUnusedRsls, getReportInvalidStylesAsWarnings, getResourceBundleList, getRslExcludedLibraries, getRslPathInfo, getRuntimeSharedLibraries, getScriptRecursionLimit, getScriptTimeLimit, getShowInvalidCSSPropertyWarnings, getSizeReport, getStatesClass, getStatesEventOverrideClass, getStatesInstanceOverrideClass, getStatesPropertyOverrideClass, getStatesStyleOverrideClass, getStaticLinkRsl, getSwfDebugfileAlias, getSwfVersion, getTargetFile, getTargetFileDirectory, getTargetPlayerMajorVersion, getTargetPlayerMinorVersion, getTargetPlayerRevision, getToolsLocale, getUseDirectBlit, getUseFlashBuilderProjectFiles, getUseGpu, getUseNetwork, getVerifyDigests, getWarningProblems, getWarnings, getWarnOnRoyaleOnlyOptionUsage, getWatch, isCompilerMxmlMinimumSupportedVersionConfigured, isDebuggingEnabled, isDumpAst, isEnableTelemetry, isExcludeNativeJSLibraries, isHeadlessServer, isInliningEnabled, isRoyale, isStrictXML, isVerbose, keepAllTypeSelectors, metadataExport, omitTraceStatements, optimize, release, reportMissingRequiredSkinPartsAsWarnings, resolvePathStrict, scriptLimitsSet, setApiReport, setApplicationDomain, setAS3, setBenchmark, setCompilerAccessible, setCompilerActionscriptFileEncoding, setCompilerAdjustOpdebugline, setCompilerAllowAbstractClasses, setCompilerAllowImportAliases, setCompilerAllowPrivateConstructors, setCompilerAllowPrivateNameConflicts, setCompilerAllowSourcePathOverlap, setCompilerAllowSubclassOverrides, setCompilerBindingEventHandlerClass, setCompilerBindingEventHandlerEvent, setCompilerBindingEventHandlerInterface, setCompilerBindingValueChangeEvent, setCompilerBindingValueChangeEventKind, setCompilerByteArrayEmbedClass, setCompilerComponentFactoryClass, setCompilerComponentFactoryInterface, setCompilerConservative, setCompilerContextRoot, setCompilerDebug, setCompilerDefaultsCssUrl, setCompilerDefine, setCompilerDoc, setCompilerEnableRuntimeDesignLayers, setCompilerEnableSwcVersionFiltering, setCompilerExternalLibraryPath, setCompilerFontsAdvancedAntiAliasing, setCompilerFontsLanguagesLanguageRange, setCompilerFontsLocalFontPaths, setCompilerFontsLocalFontsSnapshot, setCompilerFontsManagers, setCompilerFontsMaxCachedFonts, setCompilerFontsMaxGlyphsPerFace, setCompilerFxgBaseClass, setCompilerGenerateAbstractSyntaxTree, setCompilerGeneratedDirectory, setCompilerHeadlessServer, setCompilerIncludeLibraries, setCompilerIncremental, setCompilerInfoFlex, setCompilerIsolateStyles, setCompilerKeepAllTypeSelectors, setCompilerKeepAs3Metadata, setCompilerKeepGeneratedActionscript, setCompilerKeepGeneratedSignatures, setCompilerLibraryPath, setCompilerLocale, setCompilerMetadataExport, setCompilerMinimumSupportedVersion, setCompilerMxmlCompatibilityVersion, setCompilerMxmlForceLocalId, setCompilerMxmlImplicitImports, setCompilerMxmlMinimumSupportedVersion, setCompilerMxmlMinimumSupportedVersion, setCompilerMxmlQualifiedTypeSelectors, setCompilerNamespacesNamespace, setCompilerOmitTraceStatements, setCompilerOptimize, setCompilerPreloader, setCompilerProxyBaseClass, setCompilerReportInvalidStylesAsWarnings, setCompilerReportMissingRequiredSkinPartsAsWarnings, setCompilerServices, setCompilerShowActionscriptWarnings, setCompilerShowBindingWarnings, setCompilerShowDependencyWarnings, setCompilerShowDeprecationWarnings, setCompilerShowMultipleDefinitionWarnings, setCompilerShowShadowedDeviceFontWarnings, setCompilerShowUnusedTypeSelectorWarnings, setCompilerSourcePath, setCompilerStatesClass, setCompilerStatesEventOverrideClass, setCompilerStatesInstanceOverrideClass, setCompilerStatesPropertyOverrideClass, setCompilerStatesStyleOverrideClass, setCompilerStrict, setCompilerStrictIdentifierNames, setCompilerSuppressWarningsInIncremental, setCompilerSwfExternalLibraryPath, setCompilerSwfLibraryPath, setCompilerTheme, setCompilerUseResourceBundleMetadata, setCompilerVerboseStacktraces, setCompilerWarnArrayTostringChanges, setCompilerWarnAssignmentWithinConditional, setCompilerWarnBadArrayCast, setCompilerWarnBadBoolAssignment, setCompilerWarnBadDateCast, setCompilerWarnBadEs3TypeMethod, setCompilerWarnBadEs3TypeProp, setCompilerWarnBadNanComparison, setCompilerWarnBadNullAssignment, setCompilerWarnBadNullComparison, setCompilerWarnBadUndefinedComparison, setCompilerWarnBooleanConstructorWithNoArgs, setCompilerWarnChangesInResolve, setCompilerWarnClassIsSealed, setCompilerWarnConstNotInitialized, setCompilerWarnConstructorReturnsValue, setCompilerWarnDeprecatedEventHandlerError, setCompilerWarnDeprecatedFunctionError, setCompilerWarnDeprecatedPropertyError, setCompilerWarnDuplicateArgumentNames, setCompilerWarnForVarInChanges, setCompilerWarnImportHidesClass, setCompilerWarnInstanceOfChanges, setCompilerWarnInternalError, setCompilerWarnLevelNotSupported, setCompilerWarnMissingNamespaceDecl, setCompilerWarnNegativeUintLiteral, setCompilerWarnNoConstructor, setCompilerWarnNoExplicitSuperCallInConstructor, setCompilerWarnNoTypeDecl, setCompilerWarnNumberFromStringChanges, setCompilerWarnScopingChangeInThis, setCompilerWarnSlowTextFieldAddition, setCompilerWarnThisWithinClosure, setCompilerWarnUnlikelyFunctionValue, setCompilerWarnXmlClassHasChanged, setCompress, setComputeDigest, setCreateTargetWithErrors, setDebug, setDebugPassword, setDefaultBackgroundColor, setDefaultFrameRate, setDefaultScriptLimits, setDefaultsCSSFiles, setDefaultSize, setDependencyGraphOutput, setDiagnostics, setDumpAst, setDumpConfig, setEnableInlining, setEnableTelemetry, setEnableTelemetry, setErrorProblems, setES, setExcludeDefaultsCSSFiles, setExcludeNativeJSLibraries, setExtension, setExterns, setFileSpecs, setForceRsls, setFramesFrame, setFramework, setHelp, setIgnoreProblems, setIncludeClasses, setIncludeFiles, setIncludeInheritanceDependenciesOnly, setIncludeLookupOnly, setIncludeNamespaces, setIncludeResourceBundles, setIncludes, setIncludeSources, setIncludeStyleSheets, setLegacyMessageFormat, setLicensesLicense, setLinkReport, setLoadConfig, setLoadExterns, setMainDefinition, setMetadataContributor, setMetadataCreator, setMetadataDate, setMetadataDateFormat, setMetadataDescription, setMetadataLanguage, setMetadataLocalizedDescription, setMetadataLocalizedTitle, setMetadataPublisher, setMetadataTitle, setMobile, setOutput, setOutputSwcAsDirectory, setOverrideStaticLinkRsl, setPathResolver, setRawMetadata, setRemoveDeadCode, setRemoveUnusedRsls, setReportMissingCompilerLibraries, setReportMissingCompilerSwfLibraries, setResourceBundleList, setRoyale, setRuntimeSharedLibraries, setRuntimeSharedLibraryPath, setShowInvalidCssPropertyWarnings, setSizeReport, setStaticLinkRuntimeSharedLibraries, setStrictXML, setStrictXML, setSwfDebugfileAlias, setSwfVersion, setTargetFile, setTargetPlayer, setToolsLocale, setUseDirectBlit, setUseFlashBuilderProjectFiles, setUseGpu, setUseNetwork, setVerbose, setVerifyDigests, setVersion, setWarningProblems, setWarnings, setWarnOnRoyaleOnlyOptionUsage, setWatch, showBindingWarnings, showDependencyWarnings, showDeprecationWarnings, showMultipleDefinitionWarnings, showUnusedTypeSelectorWarnings, strict, suppressWarningsInIncremental, useCompression, useConservativeAlgorithm, useLegacyMessageFormat, validate, validateNoCompcOnlyOptions, warn_array_tostring_changes, warn_assignment_within_conditional, warn_bad_array_cast, warn_bad_bool_assignment, warn_bad_date_cast, warn_bad_es3_type_method, warn_bad_es3_type_prop, warn_bad_nan_comparison, warn_bad_null_assignment, warn_bad_null_comparison, warn_bad_undefined_comparison, warn_boolean_constructor_with_no_args, warn_changes_in_resolve, warn_class_is_sealed, warn_const_not_initialized, warn_constructor_returns_value, warn_deprecated_event_handler_error, warn_deprecated_function_error, warn_deprecated_property_error, warn_duplicate_argument_names, warn_duplicate_variable_def, warn_for_var_in_changes, warn_import_hides_class, warn_instance_of_changes, warn_internal_error, warn_level_not_supported, warn_missing_namespace_decl, warn_negative_uint_literal, warn_no_constructor, warn_no_explicit_super_call_in_constructor, warn_no_type_decl, warn_number_from_string_changes, warn_scoping_change_in_this, warn_slow_text_field_addition, warn_this_within_closure, warn_unlikely_function_value, warn_xml_class_has_changed, warningsprotected String closureLib
protected String jsGetterPrefix
protected String jsSetterPrefix
public boolean isClosureLibSet()
public String getClosureLib()
public void setClosureLib(ConfigurationValue cv, String value) throws ConfigurationException
ConfigurationExceptionpublic String getBindingValueChangeEventType()
getBindingValueChangeEventType in class Configurationpublic void setCompilerBindingValueChangeEventType(ConfigurationValue cv, String b)
setCompilerBindingValueChangeEventType in class Configurationpublic Boolean getCompilerMxmlChildrenAsData()
getCompilerMxmlChildrenAsData in class Configurationpublic void setCompilerMxmlChildrenAsData(ConfigurationValue cv, Boolean asData) throws ConfigurationException
setCompilerMxmlChildrenAsData in class ConfigurationConfigurationExceptionpublic String getMarmotinni()
public void setMarmotinni(ConfigurationValue cv, String value) throws ConfigurationException
ConfigurationExceptionpublic void setSDKJSLib(ConfigurationValue cv, List<String> value) throws ConfigurationException
ConfigurationExceptionpublic void setExternalJSLib(ConfigurationValue cv, List<String> value) throws ConfigurationException
ConfigurationExceptionpublic boolean getStrictPublish()
public void setStrictPublish(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getKeepASDoc()
public void setKeepASDoc(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getRemoveCirculars()
public void setRemoveCirculars(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getSkipTranspile()
public void setSkipTranspile(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionprotected String getAbsolutePathFromPathRelativeToMXMLC(String relativePath) throws IOException
IOExceptionpublic void setJSCompilerOptions(ConfigurationValue cv, List<String> value) throws ConfigurationException
ConfigurationExceptionpublic void setJSOutputOptimizations(ConfigurationValue cv, List<String> value) throws ConfigurationException
ConfigurationExceptionpublic File getHtmlTemplate()
public void setHtmlTemplate(ConfigurationValue cv, String filename)
public String getHtmlOutputFileName()
public void setHtmlOutputFileName(ConfigurationValue cv, String filename)
public void setCompilerKeepCodeWithMetadata(ConfigurationValue cv, List<String> values)
public boolean getExportPublicSymbols()
public void setExportPublicSymbols(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getExportProtectedSymbols()
public void setExportProtectedSymbols(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getExportInternalSymbols()
public void setExportInternalSymbols(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameMxmlSymbolReferences()
public void setPreventRenameMxmlSymbolReferences(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicSymbols()
public void setPreventRenamePublicSymbols(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicInstanceMethods()
public void setPreventRenamePublicInstanceMethods(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicStaticMethods()
public void setPreventRenamePublicStaticMethods(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicInstanceVariables()
public void setPreventRenamePublicInstanceVariables(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicStaticVariables()
public void setPreventRenamePublicStaticVariables(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicInstanceAccessors()
public void setPreventRenamePublicInstanceAccessors(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenamePublicStaticAccessors()
public void setPreventRenamePublicStaticAccessors(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedSymbols()
public void setPreventRenameProtectedSymbols(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedInstanceMethods()
public void setPreventRenameProtectedInstanceMethods(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedStaticMethods()
public void setPreventRenameProtectedStaticMethods(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedInstanceVariables()
public void setPreventRenameProtectedInstanceVariables(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedStaticVariables()
public void setPreventRenameProtectedStaticVariables(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedInstanceAccessors()
public void setPreventRenameProtectedInstanceAccessors(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameProtectedStaticAccessors()
public void setPreventRenameProtectedStaticAccessors(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalSymbols()
public void setPreventRenameInternalSymbols(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalInstanceMethods()
public void setPreventRenameInternalInstanceMethods(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalStaticMethods()
public void setPreventRenameInternalStaticMethods(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalInstanceVariables()
public void setPreventRenameInternalInstanceVariables(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalStaticVariables()
public void setPreventRenameInternalStaticVariables(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalInstanceAccessors()
public void setPreventRenameInternalInstanceAccessors(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getPreventRenameInternalStaticAccessors()
public void setPreventRenameInternalStaticAccessors(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getAllowDynamicBindings()
public void setAllowDynamicBindings(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getMxmlReflectObjectProperty()
public void setMxmlReflectObjectProperty(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic boolean getWarnPublicVars()
public void setWarnPublicVars(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic File getExternsReport()
public void setExternsReport(ConfigurationValue cv, String filename)
-js-compiler-options="--externs <path-to-this-file>" option.public int getReflectionFlags()
public boolean getInlineConstants()
public void setInlineConstants(ConfigurationValue cv, boolean value) throws ConfigurationException
ConfigurationExceptionpublic String getJsGetterPrefix()
public void setJsGetterPrefix(ConfigurationValue cv, String value) throws ConfigurationException
ConfigurationExceptionpublic String getJsSetterPrefix()
public void setJsSetterPrefix(ConfigurationValue cv, String value) throws ConfigurationException
ConfigurationExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.