public class AppSWFTarget extends SWFTarget
SWFTarget
that builds a SWF that is meant to be loaded
by the flash player ( as opposed to a library.swf in a SWC ).SWFTarget.FramesInformation, SWFTarget.SWFFrameInfo
Target.BuiltCompilationUnitSet, Target.DirectDependencies, Target.RootedCompilationUnits
ITarget.TargetType
metadataDonators
progressMonitor, project, targetSettings
Constructor and Description |
---|
AppSWFTarget(CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor)
Constructor
|
AppSWFTarget(CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor,
Set<ICompilationUnit> additionalRootedCompilationUnits)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addLinkedABCToFrame(SWFFrame targetFrame,
Iterable<DoABCTag> inputABCs,
ABCLinker.ABCLinkerSettings linkSettings) |
protected Iterable<ICompilerProblem> |
computeFatalProblems()
|
protected SWFTarget.FramesInformation |
computeFramesInformation()
Create the
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 SWFTarget.FramesInformation |
getExplicitFramesInformation()
Get's a cached
FramesInformation for frames created by the
-frames command line option. |
protected ICompilationUnit |
getRootClassCompilationUnit() |
protected ClassDefinition |
getRootClassDefinition() |
protected ISWF |
linkSWF(ISWF unLinked)
Link the swf - this handles merging the DoABC tags inside each frame, and will
also handle stripping debug opcodes, optimizing the abcs, and/or stripping metadata
|
protected void |
setKeepAS3MetadataLinkerSetting(ABCLinker.ABCLinkerSettings linkSettings) |
addCompilationUnitsAndDependenciesToFrame, build, buildEmptySWF, computeRootedCompilationUnits, computeTargetReport, createWithClassesAndItsDependencies, doAddMetadataNamesToTarget, doPostBuildWork, getBackgroundColor, getFramesInformation, getRootedCompilationUnits, getTargetAttributes, getTargetType, initializeSWF, reportProblem, shouldAddMetadataNamesToTarget, testCompilationUnitLinkage
addASMetadataNames, buildAllCompilationUnits, buildFinished, buildStarted, 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
getASMetadataNames, getIncludesCompilationUnits, getTargetReport, getTargetSettings
public AppSWFTarget(CompilerProject project, ITargetSettings targetSettings, ITargetProgressMonitor progressMonitor)
project
- CompilerProject
that contains the code this
AppSWFTarget
compiles.targetSettings
- ITargetSettings
that contains the
confuration of this AppSWFTarget
.progressMonitor
- ITargetProgressMonitor
to which status is
reported as this AppSWFTarget
is built.public AppSWFTarget(CompilerProject project, ITargetSettings targetSettings, ITargetProgressMonitor progressMonitor, Set<ICompilationUnit> additionalRootedCompilationUnits)
project
- CompilerProject
that contains the code this
AppSWFTarget
compiles.targetSettings
- ITargetSettings
that contains the
confuration of this AppSWFTarget
.progressMonitor
- ITargetProgressMonitor
to which status is
reported as this AppSWFTarget
is built.additionalRootedCompilationUnits
- Set
of additional
ICompilationUnit
s that will be built add added to the output of
this AppSWFTarget
.protected Iterable<ICompilerProblem> computeFatalProblems() throws InterruptedException
Target
Iterable
of fatal ICompilerProblem
s that
prevent this Target
from being built.
Sub-classes override this method to check for additional fatal
ICompilerProblem
s.
computeFatalProblems
in class Target
Iterable
of fatal ICompilerProblem
sInterruptedException
protected final SWFTarget.FramesInformation getExplicitFramesInformation()
FramesInformation
for frames created by the
-frames command line option.FramesInformation
for frames created by the
-frames command line option.protected ITargetAttributes computeTargetAttributes() throws InterruptedException
SWFTarget
computeTargetAttributes
in class SWFTarget
InterruptedException
protected SWFTarget.FramesInformation computeFramesInformation() throws InterruptedException
FramesInformation
which contains the skeleton for the frames
of this SWF. The actual frames will be create in doCreateFrames().computeFramesInformation
in class SWFTarget
InterruptedException
protected 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
protected ClassDefinition getRootClassDefinition()
protected final ICompilationUnit getRootClassCompilationUnit()
Copyright © 2016 The Apache Software Foundation. All rights reserved.