public abstract class FlexTarget extends Object
Modifier and Type | Field and Description |
---|---|
protected HashSet<String> |
accessibleClassNames
Set of classes referenced from accessibility meta-data. |
protected FlexProject |
flexProject |
Modifier and Type | Method and Description |
---|---|
void |
addProductInfoToSWF(ISWF swf)
Update the SWF model by adding a ProductInfoTag.
|
protected void |
codegenCallInContextMethod(ClassGeneratorHelper classGen,
boolean isOverride)
Codegen IFlexModuleFactory.callInContext();
public final override function callInContext(fn:Function, thisArg:Object, argArray:Array, returns:Boolean=true) : *
{
var ret : * = fn.apply(thisArg, argArray);
if (returns) return ret;
return;
}
|
protected void |
codegenCreateMethod(ClassGeneratorHelper classGen,
Name mainApplicationName)
Codegen IFlexModuleFactory.create() override public function create(...
|
protected void |
codegenInfoMethod(ClassGeneratorHelper classGen,
Integer compatibilityVersion,
String mainClassQName,
IResolvedQualifiersReference preloaderReference,
IResolvedQualifiersReference runtimeDPIProviderReference,
org.apache.flex.compiler.internal.targets.FlexSplashScreenImage splashScreen,
IASNode rootNode,
ITargetAttributes targetAttributes,
Collection<String> compiledLocales,
org.apache.flex.compiler.internal.targets.FlexFrame1Info frame1Info,
Set<String> accessibilityClassNames,
String flexInitClassName,
String stylesClassName,
List<String> rsls,
org.apache.flex.compiler.internal.targets.FlexRSLInfo rslInfo,
Collection<ICompilerProblem> problemCollection,
boolean isAppFlexInfo)
Codegen the IFlexModuleFactory.info() method.
|
Target.DirectDependencies |
getAccessibilityDependencies(ICompilationUnit compilationUnit)
Find the accessible compilation units on a set of compilation units.
|
protected final FlexProject flexProject
protected final HashSet<String> accessibleClassNames
Set
of classes referenced from accessibility meta-data.
For Example:
[AccessibilityClass(implementation="mx.accessibility.ButtonAccImpl")]
This set is accumulated as we discover direct dependencies, which is not as maintainable as I would like.
protected final void codegenCallInContextMethod(ClassGeneratorHelper classGen, boolean isOverride)
classGen
- isOverride
- true if the generated method overrides a base class
method, false otherwise.protected final void codegenCreateMethod(ClassGeneratorHelper classGen, Name mainApplicationName)
protected final void codegenInfoMethod(ClassGeneratorHelper classGen, Integer compatibilityVersion, String mainClassQName, IResolvedQualifiersReference preloaderReference, IResolvedQualifiersReference runtimeDPIProviderReference, org.apache.flex.compiler.internal.targets.FlexSplashScreenImage splashScreen, IASNode rootNode, ITargetAttributes targetAttributes, Collection<String> compiledLocales, org.apache.flex.compiler.internal.targets.FlexFrame1Info frame1Info, Set<String> accessibilityClassNames, String flexInitClassName, String stylesClassName, List<String> rsls, org.apache.flex.compiler.internal.targets.FlexRSLInfo rslInfo, Collection<ICompilerProblem> problemCollection, boolean isAppFlexInfo) throws InterruptedException
classGen
- used to create the functioncompatibilityVersion
- compatibility version set in the compiler option.
May be null if not configured.mainClassQName
- qName of the main class of the application. May be null
of library swfs.preloaderReference
- reference to the configured preloader class.
May be null for library swfs.runtimeDPIProviderReference
- configured runtimeDPIProvider. May be null
for library swfs.splashScreen
- reference to the configured splash screen.rootNode
- root node of the application. May be null for library swfs.compiledLocales
- the locales supported by this application. May be null for
library swfs.rsls
- legacy RSLs. May be null for library swfs.problemCollection
- problems found when generating the info method
are added to the collection.InterruptedException
public Target.DirectDependencies getAccessibilityDependencies(ICompilationUnit compilationUnit) throws InterruptedException
[AccessiblityClass]
meta-data on a class.
Unfortunately this method has a side effect, it updates the set of accessibility classes.
compilationUnit
- A compilation unit.Target.DirectDependencies
object with the set of compilation
units representing the new compilation units needed for accessibility. If
no accessible compilation units are found or accessibility is not enabled
on the target, then the returned Target.DirectDependencies
object will
contain an empty set.InterruptedException
public void addProductInfoToSWF(ISWF swf)
swf
- the swf model to update.Copyright © 2016 The Apache Software Foundation. All rights reserved.