public final class FlexLibrarySWFTarget extends LibrarySWFTarget
SWFTarget.FramesInformation, SWFTarget.SWFFrameInfo
Target.BuiltCompilationUnitSet, Target.DirectDependencies, Target.RootedCompilationUnits
ITarget.TargetType
rootedCompilationUnits
metadataDonators
progressMonitor, 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, testCompilationUnitLinkage
addCompilationUnitsAndDependenciesToFrame, build, buildEmptySWF, computeRootedCompilationUnits, computeTargetReport, createWithClassesAndItsDependencies, doAddMetadataNamesToTarget, getBackgroundColor, getFramesInformation, getRootedCompilationUnits, getTargetAttributes, getTargetType, linkSWF, reportProblem
addASMetadataNames, buildAllCompilationUnits, buildFinished, buildStarted, computeFatalProblems, createLinkReport, findAllCompilationUnitsToLink, getAllExternallyVisibleDefinitions, getASMetadataNames, getBuiltCompilationUnitSet, getDependentCompilationUnits, getFatalProblems, getIncludedResourceBundlesCompilationUnits, getIncludeLibrariesCompilationUnits, getIncludesCompilationUnits, getLinkageChecker, getReachableCompilationUnits, getTargetReport, getTargetSettings, isCanceled, isLinkageExternal, setLinkageChecker, updateProgress, updateProgress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
getASMetadataNames, getIncludesCompilationUnits, getTargetReport, getTargetSettings, getTargetType
public FlexLibrarySWFTarget(FlexProject project, ITargetSettings targetSettings, Set<ICompilationUnit> rootedCompilationUnits)
public String getBaseClassQName()
ILibrarySWFTarget
getBaseClassQName
in interface ILibrarySWFTarget
getBaseClassQName
in class LibrarySWFTarget
protected SWFTarget.FramesInformation computeFramesInformation() throws InterruptedException
SWFTarget
SWFTarget.FramesInformation
which contains the skeleton for the frames
of this SWF. The actual frames will be create in doCreateFrames().computeFramesInformation
in class LibrarySWFTarget
InterruptedException
protected Target.DirectDependencies getDirectDependencies(ICompilationUnit cu) throws InterruptedException
getDirectDependencies
in class Target
InterruptedException
protected void waitForCompilationUnitToFinish(ICompilationUnit cu, Collection<ICompilerProblem> problems) throws InterruptedException
Target
ICompilationUnit
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
ResourceBundleNotFoundProblem
s and
ResourceBundleNotFoundForLocaleProblem
s 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 Target
InterruptedException
protected ISWF initializeSWF(List<ICompilationUnit> reachableCompilationUnits) throws InterruptedException
SWFTarget
initializeSWF
in class SWFTarget
InterruptedException
Copyright © 2016 The Apache Software Foundation. All rights reserved.