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.SWFFrameInfoTarget.BuiltCompilationUnitSet, Target.DirectDependencies, Target.RootedCompilationUnitsITarget.TargetTypemetadataDonatorsprogressMonitor, 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, testCompilationUnitLinkageaddASMetadataNames, buildAllCompilationUnits, buildFinished, buildStarted, 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, waitgetASMetadataNames, getIncludesCompilationUnits, getTargetReport, getTargetSettingspublic 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
ICompilationUnits that will be built add added to the output of
this AppSWFTarget.protected Iterable<ICompilerProblem> computeFatalProblems() throws InterruptedException
TargetIterable of fatal ICompilerProblems that
prevent this Target from being built.
Sub-classes override this method to check for additional fatal
ICompilerProblems.
computeFatalProblems in class TargetIterable of fatal ICompilerProblemsInterruptedExceptionprotected 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
SWFTargetcomputeTargetAttributes in class SWFTargetInterruptedExceptionprotected 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 SWFTargetInterruptedExceptionprotected void addLinkedABCToFrame(SWFFrame targetFrame, Iterable<DoABCTag> inputABCs, ABCLinker.ABCLinkerSettings linkSettings) throws Exception
addLinkedABCToFrame in class SWFTargetExceptionprotected void setKeepAS3MetadataLinkerSetting(ABCLinker.ABCLinkerSettings linkSettings)
setKeepAS3MetadataLinkerSetting in class SWFTargetprotected ClassDefinition getRootClassDefinition()
protected final ICompilationUnit getRootClassCompilationUnit()
Copyright © 2016 The Apache Software Foundation. All rights reserved.