public class TargetSettings extends Object implements ITargetSettings
| Constructor and Description |
|---|
TargetSettings(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areDefaultScriptLimitsSet()
Returns if the default script limits have been set.
|
boolean |
areVerboseStacktracesEnabled()
Returns true if the target is capable of verbose stack traces.
|
boolean |
getAllowSubclassOverrides() |
Collection<String> |
getASMetadataNames()
The names of ActionScript metadata that will be preserved in the target.
|
int |
getDefaultBackgroundColor()
Returns the default background color.
|
File |
getDefaultCSS()
Returns the location of the default CSS file.
|
int |
getDefaultFrameRate()
Returns the default frame rate.
|
int |
getDefaultHeight()
Returns the default height.
|
int |
getDefaultScriptRecursionLimit()
Returns the default script recursion limit.
|
int |
getDefaultScriptTimeLimit()
Returns the default script time limit.
|
List<String> |
getDefaultsCSSFiles() |
int |
getDefaultWidth()
Returns the default width.
|
Collection<File> |
getExternalLibraryPath()
Returns a collection of libraries whose classes are not be linked
into the target.
|
Collection<String> |
getExterns()
Returns a list of fully qualified class names that should not be linked
into the target.
|
String |
getFlexMinimumSupportedVersion()
Used when creating a library.
|
List<FrameInfo> |
getFrameLabels()
|
Collection<String> |
getIncludeClasses()
Returns a collection of fully-qualified class names that are included in
the target library.
|
Map<String,File> |
getIncludeFiles()
Returns a collection of files that are included in the target library.
|
Collection<File> |
getIncludeLibraries()
Returns a collection of libraries whose classes are linked
into the target.
|
Collection<String> |
getIncludeNamespaces()
Returns a collection of namespaces that are included in the target
library.
|
Collection<String> |
getIncludeResourceBundles()
Returns a collection of resource bundle names that are included
in the target library.
|
Collection<String> |
getIncludes()
Returns a list of fully qualified class names that should be linked
into the target regardless of whether they are required by the target or
not.
|
Collection<File> |
getIncludeSources()
Returns a collection of sources that are included in the target library.
|
Map<String,File> |
getIncludeStyleSheets()
Returns a map of style sheet names and files that are included
in the target library.
|
File |
getLinkReport()
Returns the file that specifies where the link report should be written.
|
boolean |
getMxmlChildrenAsData() |
String[] |
getMxmlImplicitImports()
Gets the implicit imports for MXML.
|
File |
getOutput()
Returns the file that specifies where the target should be created.
|
String |
getPreloaderClassName()
Returns the preloader class name
|
boolean |
getRemoveDeadCode() |
String |
getRootClassName()
Returns the root class name for the application SWF.
|
String |
getRootSourceFileName()
Returns the absolute file name of the source file that defines the root
class.
|
List<String> |
getRuntimeSharedLibraries()
A list of URLs pointing to RSLs to load.
|
List<RSLSettings> |
getRuntimeSharedLibraryPath()
A list of RSLs to load, complete with all the settings on how to load
the RSLs.
|
File |
getSizeReport()
Returns the file that specifies where the size report should be written.
|
String |
getSWFMetadata()
Get the Metadata text.
|
int |
getSWFVersion()
Return the SWF version
|
List<File> |
getThemes()
Returns a list of CSS and SWC files to apply as a theme.
|
boolean |
isAccessible()
Returns true if the target file is accessible.
|
boolean |
isDebugEnabled()
Returns true if the target file has debugging instructions
included.
|
boolean |
isIncludeLookupOnlyEnabled()
Returns true if only manifest entries with lookupOnly=true are included
in the SWC catalog, false otherwise.
|
boolean |
isLinkageExternal(String path)
Determine is a library has external linkage.
|
boolean |
isOptimized()
Returns true if the target should be optimized.
|
boolean |
isTelemetryEnabled()
Returns true if the target file has advanced telemetry
enabled.
|
boolean |
keepAllTypeSelectors()
Returns true if the compiler has disabled the pruning of unused type
selectors.
|
boolean |
removeUnusedRuntimeSharedLibraryPaths()
Returns true if RSLs that have no classes used by the application are
not loaded at runtime.
|
boolean |
useCompression()
Returns true if the target should be output using compression.
|
boolean |
useDirectBlit()
Returns whether the application SWF is flagged for direct blit use.
|
boolean |
useGPU()
Returns whether the application SWF is flagged for GPU use.
|
boolean |
useNetwork()
Returns whether the application SWF is flagged for access to network
resources.
|
boolean |
useResourceBundleMetadata()
Returns true if resource bundle metadata should be processed.
|
boolean |
verifyDigests()
Returns the default setting for all RSLs as to whether an RSL's digest
should be verified after the RSL is loaded.
|
public TargetSettings(Configuration configuration)
public boolean isAccessible()
ITargetSettingsisAccessible in interface ITargetSettingspublic boolean isDebugEnabled()
ITargetSettingsisDebugEnabled in interface ITargetSettingspublic boolean isTelemetryEnabled()
ITargetSettingsisTelemetryEnabled in interface ITargetSettingspublic boolean isOptimized()
ITargetSettingsisOptimized in interface ITargetSettingspublic boolean useCompression()
ITargetSettingsuseCompression in interface ITargetSettingspublic boolean areVerboseStacktracesEnabled()
ITargetSettingsareVerboseStacktracesEnabled in interface ITargetSettingspublic boolean keepAllTypeSelectors()
ITargetSettingskeepAllTypeSelectors in interface ITargetSettingspublic boolean useNetwork()
ITargetSettingsuseNetwork in interface ITargetSettingspublic boolean removeUnusedRuntimeSharedLibraryPaths()
ITargetSettingsremoveUnusedRuntimeSharedLibraryPaths in interface ITargetSettingspublic boolean verifyDigests()
ITargetSettingsverify-digests
option in the mxmlc compiler.verifyDigests in interface ITargetSettingsRSLSettingspublic boolean useResourceBundleMetadata()
ITargetSettingsuseResourceBundleMetadata in interface ITargetSettingspublic boolean isIncludeLookupOnlyEnabled()
ITargetSettingsisIncludeLookupOnlyEnabled in interface ITargetSettingspublic int getDefaultBackgroundColor()
ITargetSettingsgetDefaultBackgroundColor in interface ITargetSettingspublic int getDefaultFrameRate()
ITargetSettingsgetDefaultFrameRate in interface ITargetSettingspublic boolean areDefaultScriptLimitsSet()
ITargetSettingsareDefaultScriptLimitsSet in interface ITargetSettingspublic int getDefaultScriptTimeLimit()
ITargetSettingsgetDefaultScriptTimeLimit in interface ITargetSettingspublic int getDefaultScriptRecursionLimit()
ITargetSettingsgetDefaultScriptRecursionLimit in interface ITargetSettingspublic int getDefaultWidth()
ITargetSettingsgetDefaultWidth in interface ITargetSettingspublic int getDefaultHeight()
ITargetSettingsgetDefaultHeight in interface ITargetSettingspublic File getOutput()
ITargetSettingsgetOutput in interface ITargetSettingspublic Collection<String> getASMetadataNames()
ITargetSettingsgetASMetadataNames in interface ITargetSettingspublic File getDefaultCSS()
ITargetSettingsgetDefaultCSS in interface ITargetSettingspublic Collection<String> getExterns()
ITargetSettingsgetExterns in interface ITargetSettingspublic String[] getMxmlImplicitImports()
ITargetSettingsgetMxmlImplicitImports in interface ITargetSettingspublic Collection<String> getIncludes()
ITargetSettingsgetIncludes in interface ITargetSettingspublic List<FrameInfo> getFrameLabels()
ITargetSettingsList of FrameInfo objects that describe extra frames of
a SWF. Each frame label has a list of class names that will be linked
onto the frame.getFrameLabels in interface ITargetSettingspublic String getSWFMetadata()
ITargetSettingsThe Metadata tag is an optional tag to describe the SWF file to an external process. The tag embeds XML metadata in the SWF file so that, for example, a search engine can locate this tag, access a title for the SWF file, and display that title in search results.
getSWFMetadata in interface ITargetSettingspublic int getSWFVersion()
ITargetSettingsgetSWFVersion in interface ITargetSettingspublic String getPreloaderClassName()
ITargetSettingsgetPreloaderClassName in interface ITargetSettingspublic String getRootSourceFileName()
ITargetSettingsITargets using this ITargetSettings do not
build SWFs ( they could build SWCs instead ), then this method will
return null.getRootSourceFileName in interface ITargetSettingsITargetSettings is not for building SWFs.public String getRootClassName()
ITargetSettingsITargets
using this ITargetSettings do not build SWFs ( they could build
SWCs instead ), then this method will return null.getRootClassName in interface ITargetSettingspublic List<File> getThemes()
ITargetSettingsgetThemes in interface ITargetSettingspublic Collection<File> getExternalLibraryPath()
ITargetSettingsgetExternalLibraryPath in interface ITargetSettingspublic Collection<File> getIncludeLibraries()
ITargetSettingsgetIncludeLibraries in interface ITargetSettingspublic List<String> getRuntimeSharedLibraries()
ITargetSettingsruntime-shared-libraries
option in the mxmlc compiler.
These RSLs are available to support legacy applications. For the latest
RSL support see getRuntimeSharedLibraryPath.getRuntimeSharedLibraries in interface ITargetSettingspublic List<RSLSettings> getRuntimeSharedLibraryPath()
ITargetSettingsruntime-shared-library-path
option in the mxmlc compiler.getRuntimeSharedLibraryPath in interface ITargetSettingspublic Collection<String> getIncludeClasses()
ITargetSettingsgetIncludeClasses in interface ITargetSettingspublic Collection<File> getIncludeSources()
ITargetSettingsgetIncludeSources in interface ITargetSettingspublic Map<String,File> getIncludeFiles()
ITargetSettingsgetIncludeFiles in interface ITargetSettingspublic Collection<String> getIncludeNamespaces()
ITargetSettingsgetIncludeNamespaces in interface ITargetSettingspublic Collection<String> getIncludeResourceBundles()
ITargetSettingsgetIncludeResourceBundles in interface ITargetSettingspublic Map<String,File> getIncludeStyleSheets()
ITargetSettingsgetIncludeStyleSheets in interface ITargetSettingspublic boolean isLinkageExternal(String path)
ITargetSettingsisLinkageExternal in interface ITargetSettingspath - the absolute path of a library.public boolean useDirectBlit()
ITargetSettingsuseDirectBlit in interface ITargetSettingspublic boolean useGPU()
ITargetSettingsuseGPU in interface ITargetSettingspublic List<String> getDefaultsCSSFiles()
getDefaultsCSSFiles in interface ITargetSettingsdefaults-css-files configuration option.public File getLinkReport()
ITargetSettingsgetLinkReport in interface ITargetSettingspublic File getSizeReport()
ITargetSettingsgetSizeReport in interface ITargetSettingspublic String getFlexMinimumSupportedVersion()
ITargetSettingsgetFlexMinimumSupportedVersion in interface ITargetSettingspublic boolean getMxmlChildrenAsData()
getMxmlChildrenAsData in interface ITargetSettingspublic boolean getAllowSubclassOverrides()
getAllowSubclassOverrides in interface ITargetSettingspublic boolean getRemoveDeadCode()
getRemoveDeadCode in interface ITargetSettingsCopyright © 2016 The Apache Software Foundation. All rights reserved.