public final class FlexLibrarySWFTarget extends LibrarySWFTarget
SWFTarget.FramesInformation, SWFTarget.SWFFrameInfoTarget.BuiltCompilationUnitSet, Target.DirectDependencies, Target.RootedCompilationUnitsITarget.TargetTyperootedCompilationUnitsmetadataDonatorsprogressMonitor, project, targetSettings| Constructor and Description |
|---|
FlexLibrarySWFTarget(FlexProject project,
ITargetSettings targetSettings,
Set<ICompilationUnit> rootedCompilationUnits) |
| Modifier and Type | Method and Description |
|---|---|
protected SWFTarget.FramesInformation |
computeFramesInformation()
Create the
SWFTarget.FramesInformation which contains the skeleton for the frames
of this SWF. |
String |
getBaseClassQName()
Get the qualified name of the base class of the root class.
|
protected Target.DirectDependencies |
getDirectDependencies(ICompilationUnit cu) |
protected ISWF |
initializeSWF(List<ICompilationUnit> reachableCompilationUnits)
Initialize SWF model with default header values from the target settings
when not overridden by the target attributes.
|
protected void |
waitForCompilationUnitToFinish(ICompilationUnit cu,
Collection<ICompilerProblem> problems)
Waits for the specified
ICompilationUnit to finish building and
add any problems found in the specified ICompilationUnit to the
specified Collection. |
addLinkedABCToFrame, computeTargetAttributes, doPostBuildWork, getCompilationUnits, getRootClassName, setKeepAS3MetadataLinkerSetting, shouldAddMetadataNamesToTarget, testCompilationUnitLinkageaddCompilationUnitsAndDependenciesToFrame, build, buildEmptySWF, computeRootedCompilationUnits, computeTargetReport, createWithClassesAndItsDependencies, doAddMetadataNamesToTarget, getBackgroundColor, getFramesInformation, getRootedCompilationUnits, getTargetAttributes, getTargetType, linkSWF, reportProblemaddASMetadataNames, buildAllCompilationUnits, buildFinished, buildStarted, computeFatalProblems, createLinkReport, findAllCompilationUnitsToLink, getAllExternallyVisibleDefinitions, getASMetadataNames, getBuiltCompilationUnitSet, getDependentCompilationUnits, getFatalProblems, getIncludedResourceBundlesCompilationUnits, getIncludeLibrariesCompilationUnits, getIncludesCompilationUnits, getLinkageChecker, getReachableCompilationUnits, getTargetReport, getTargetSettings, isCanceled, isLinkageExternal, setLinkageChecker, updateProgress, updateProgressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildgetASMetadataNames, getIncludesCompilationUnits, getTargetReport, getTargetSettings, getTargetTypepublic FlexLibrarySWFTarget(FlexProject project, ITargetSettings targetSettings, Set<ICompilationUnit> rootedCompilationUnits)
public String getBaseClassQName()
ILibrarySWFTargetgetBaseClassQName in interface ILibrarySWFTargetgetBaseClassQName in class LibrarySWFTargetprotected SWFTarget.FramesInformation computeFramesInformation() throws InterruptedException
SWFTargetSWFTarget.FramesInformation which contains the skeleton for the frames
of this SWF. The actual frames will be create in doCreateFrames().computeFramesInformation in class LibrarySWFTargetInterruptedExceptionprotected Target.DirectDependencies getDirectDependencies(ICompilationUnit cu) throws InterruptedException
getDirectDependencies in class TargetInterruptedExceptionprotected void waitForCompilationUnitToFinish(ICompilationUnit cu, Collection<ICompilerProblem> problems) throws InterruptedException
TargetICompilationUnit to finish building and
add any problems found in the specified ICompilationUnit to the
specified Collection.
This method exists for the sole purpose of allowing the
FlexLibrarySWFTarget to filter out
ResourceBundleNotFoundProblems and
ResourceBundleNotFoundForLocaleProblems from
SWCCompilationUnit's that are externally linked.
If we rip out support for Flex or if we are willing to report missing resource bundles from external SWCs when linking a SWC, this method can be inlined at its call site.
If we plan on continuing to support Flex, a better way to do this would
be to have the IOutgoingDependenciesRequestResult interface have method
to get all the resource bundles referenced by an ICompilationUnit
and wait to do the final resolution of resource bundles in Target
or one of its sub-classes.
waitForCompilationUnitToFinish in class TargetInterruptedExceptionprotected ISWF initializeSWF(List<ICompilationUnit> reachableCompilationUnits) throws InterruptedException
SWFTargetinitializeSWF in class SWFTargetInterruptedExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.