public class LibrarySWFTarget extends SWFTarget implements ILibrarySWFTarget
SWFTarget.FramesInformation, SWFTarget.SWFFrameInfo
Target.BuiltCompilationUnitSet, Target.DirectDependencies, Target.RootedCompilationUnits
ITarget.TargetType
Modifier and Type | Field and Description |
---|---|
protected Set<ICompilationUnit> |
rootedCompilationUnits |
metadataDonators
progressMonitor, 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, reportProblem
addASMetadataNames, buildAllCompilationUnits, buildFinished, buildStarted, computeFatalProblems, createLinkReport, findAllCompilationUnitsToLink, getAllExternallyVisibleDefinitions, getASMetadataNames, getBuiltCompilationUnitSet, getDependentCompilationUnits, getDirectDependencies, getFatalProblems, getIncludedResourceBundlesCompilationUnits, getIncludeLibrariesCompilationUnits, getIncludesCompilationUnits, getLinkageChecker, getReachableCompilationUnits, getTargetReport, getTargetSettings, isCanceled, isLinkageExternal, setLinkageChecker, updateProgress, updateProgress, waitForCompilationUnitToFinish
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
getASMetadataNames, getIncludesCompilationUnits, getTargetReport, getTargetSettings, getTargetType
protected final Set<ICompilationUnit> rootedCompilationUnits
public LibrarySWFTarget(CompilerProject project, ITargetSettings targetSettings, Set<ICompilationUnit> rootedCompilationUnits)
protected ITargetAttributes computeTargetAttributes() throws InterruptedException
SWFTarget
computeTargetAttributes
in class SWFTarget
InterruptedException
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 SWFTarget
InterruptedException
public com.google.common.collect.ImmutableSet<ICompilationUnit> getCompilationUnits()
ILibrarySWFTarget
getCompilationUnits
in interface ILibrarySWFTarget
public String getRootClassName()
ILibrarySWFTarget
getRootClassName
in interface ILibrarySWFTarget
public String getBaseClassQName()
ILibrarySWFTarget
getBaseClassQName
in interface ILibrarySWFTarget
protected boolean testCompilationUnitLinkage(ICompilationUnit cu, boolean allowExternals) throws InterruptedException
SWFTarget
testCompilationUnitLinkage
in class SWFTarget
InterruptedException
protected void doPostBuildWork(com.google.common.collect.ImmutableSet<ICompilationUnit> compilationUnits, Collection<ICompilerProblem> problems) throws InterruptedException
SWFTarget
doPostBuildWork
in class SWFTarget
compilationUnits
- The set of compilation units after
buildAndCollectProblems() has run.problems
- A collection where discovered problems are appended.InterruptedException
protected boolean shouldAddMetadataNamesToTarget(ICompilationUnit cu, boolean linkage)
SWFTarget
shouldAddMetadataNamesToTarget
in class SWFTarget
linkage
- 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 SWFTarget
Exception
protected void setKeepAS3MetadataLinkerSetting(ABCLinker.ABCLinkerSettings linkSettings)
setKeepAS3MetadataLinkerSetting
in class SWFTarget
Copyright © 2016 The Apache Software Foundation. All rights reserved.