public class LibrarySWFTarget extends SWFTarget implements ILibrarySWFTarget
SWFTarget.FramesInformation, SWFTarget.SWFFrameInfoTarget.BuiltCompilationUnitSet, Target.DirectDependencies, Target.RootedCompilationUnitsITarget.TargetType| Modifier and Type | Field and Description |
|---|---|
protected Set<ICompilationUnit> |
rootedCompilationUnits |
metadataDonatorsprogressMonitor, project, targetSettings| Constructor and Description |
|---|
LibrarySWFTarget(CompilerProject project,
ITargetSettings targetSettings,
Set<ICompilationUnit> rootedCompilationUnits) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLinkedABCToFrame(SWFFrame targetFrame,
Iterable<DoABCTag> inputABCs,
ABCLinker.ABCLinkerSettings linkSettings) |
protected SWFTarget.FramesInformation |
computeFramesInformation()
Create the
SWFTarget.FramesInformation which contains the skeleton for the frames
of this SWF. |
protected ITargetAttributes |
computeTargetAttributes()
round-up user specified target attributes
All derived classes must provide one, but they are free to provide "do nothing" implementations
(like NilTargetAttributes)
|
protected void |
doPostBuildWork(com.google.common.collect.ImmutableSet<ICompilationUnit> compilationUnits,
Collection<ICompilerProblem> problems)
Check the build and analyze the results before the SWF target is
initialized.
|
String |
getBaseClassQName()
Get the qualified name of the base class of the root class.
|
com.google.common.collect.ImmutableSet<ICompilationUnit> |
getCompilationUnits()
Get the compilation units included in this SWF.
|
String |
getRootClassName()
Get the name of root class.
|
protected void |
setKeepAS3MetadataLinkerSetting(ABCLinker.ABCLinkerSettings linkSettings) |
protected boolean |
shouldAddMetadataNamesToTarget(ICompilationUnit cu,
boolean linkage)
Test if any metadata names associated with the compilation unit should be
added to the target.
|
protected boolean |
testCompilationUnitLinkage(ICompilationUnit cu,
boolean allowExternals)
Test if a compilation unit should be include in this target.
|
addCompilationUnitsAndDependenciesToFrame, build, buildEmptySWF, computeRootedCompilationUnits, computeTargetReport, createWithClassesAndItsDependencies, doAddMetadataNamesToTarget, getBackgroundColor, getFramesInformation, getRootedCompilationUnits, getTargetAttributes, getTargetType, initializeSWF, linkSWF, reportProblemaddASMetadataNames, buildAllCompilationUnits, buildFinished, buildStarted, computeFatalProblems, createLinkReport, findAllCompilationUnitsToLink, getAllExternallyVisibleDefinitions, getASMetadataNames, getBuiltCompilationUnitSet, getDependentCompilationUnits, getDirectDependencies, getFatalProblems, getIncludedResourceBundlesCompilationUnits, getIncludeLibrariesCompilationUnits, getIncludesCompilationUnits, getLinkageChecker, getReachableCompilationUnits, getTargetReport, getTargetSettings, isCanceled, isLinkageExternal, setLinkageChecker, updateProgress, updateProgress, waitForCompilationUnitToFinishclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildgetASMetadataNames, getIncludesCompilationUnits, getTargetReport, getTargetSettings, getTargetTypeprotected final Set<ICompilationUnit> rootedCompilationUnits
public LibrarySWFTarget(CompilerProject project, ITargetSettings targetSettings, Set<ICompilationUnit> rootedCompilationUnits)
protected ITargetAttributes computeTargetAttributes() throws InterruptedException
SWFTargetcomputeTargetAttributes in class SWFTargetInterruptedExceptionprotected 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 SWFTargetInterruptedExceptionpublic com.google.common.collect.ImmutableSet<ICompilationUnit> getCompilationUnits()
ILibrarySWFTargetgetCompilationUnits in interface ILibrarySWFTargetpublic String getRootClassName()
ILibrarySWFTargetgetRootClassName in interface ILibrarySWFTargetpublic String getBaseClassQName()
ILibrarySWFTargetgetBaseClassQName in interface ILibrarySWFTargetprotected boolean testCompilationUnitLinkage(ICompilationUnit cu, boolean allowExternals) throws InterruptedException
SWFTargettestCompilationUnitLinkage in class SWFTargetInterruptedExceptionprotected void doPostBuildWork(com.google.common.collect.ImmutableSet<ICompilationUnit> compilationUnits, Collection<ICompilerProblem> problems) throws InterruptedException
SWFTargetdoPostBuildWork in class SWFTargetcompilationUnits - The set of compilation units after
buildAndCollectProblems() has run.problems - A collection where discovered problems are appended.InterruptedExceptionprotected boolean shouldAddMetadataNamesToTarget(ICompilationUnit cu, boolean linkage)
SWFTargetshouldAddMetadataNamesToTarget in class SWFTargetlinkage - true if the compilation unit is linked in, false if
external.protected final void addLinkedABCToFrame(SWFFrame targetFrame, Iterable<DoABCTag> inputABCs, ABCLinker.ABCLinkerSettings linkSettings) throws Exception
addLinkedABCToFrame in class SWFTargetExceptionprotected void setKeepAS3MetadataLinkerSetting(ABCLinker.ABCLinkerSettings linkSettings)
setKeepAS3MetadataLinkerSetting in class SWFTargetCopyright © 2016 The Apache Software Foundation. All rights reserved.