public class FlexProject extends ASProject implements IFlexProject
FlexProject
extends ASProject
to add support for compiling
.mxml, .css, and .properties files.dependencyGraph, problems, targets
Constructor and Description |
---|
FlexProject(Workspace workspace)
Constructor
|
FlexProject(Workspace workspace,
IASDocBundleDelegate asDocBundleDelegate)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clean()
Removes all data created during a compile
|
Set<String> |
computeLibraryDependencies(File targetLibrary,
DependencyTypeSet dependencySet)
Get the set of libraries a given library depends on.
|
List<String> |
computeLibraryDependencyOrder(DependencyTypeSet dependencySet)
Get the dependency order of libraries on the internal library path and
external library path of this project.
|
LibraryDependencyGraph |
createLibraryDependencyGraph(DependencyTypeSet dependencySet)
Create a library dependency graph based on the both the external
library path and the internal library path of this project.
|
ISWCTarget |
createSWCTarget(ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor)
Create a SWC target
|
ISWFTarget |
createSWFTarget(ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor)
Create a SWF target
|
IDefinition |
doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2)
Override this to disambiguate between two ambiguous definitinos
|
String |
getActionScriptFileEncoding()
Returns the file encoding use to compile ActionScript files.
|
String |
getActualPackageName(String packageName)
Override this to permit package aliasing on imports and elsewhere
|
String |
getBindingClass()
Get the fully-qualified name of the runtime class
for internal Binding object
Currently this is "mx.binding.Binding".
|
Name |
getBindingClassName()
Get the AET Name for bindingClass
|
String |
getBindingManagerClass() |
Name |
getBindingManagerClassName() |
String |
getClassFactoryClass() |
int |
getColorAsInt(String colorValue)
Convert a color to an integer value.
|
String |
getComponentTagType()
Gets the fully-qualified type name corresponding to a
|
String |
getContainerInterface() |
CSSCompilationSession |
getCSSCompilationSession() |
ICSSManager |
getCSSManager()
Get the project-level CSS manager.
|
String |
getCSSStyleDeclarationClass() |
Name |
getCSSStyleDeclarationClassName() |
String |
getDeferredInstanceFromClassClass() |
String |
getDeferredInstanceFromFunctionClass() |
Name |
getDeferredInstanceFromFunctionName() |
String |
getDeferredInstanceInterface() |
String |
getDeferredInstantiationUIComponentInterface() |
String |
getDesignLayerQName() |
String |
getEventOverrideClass() |
Name |
getEventOverrideClassName() |
Map<File,List<String>> |
getExtensionLibraries()
Returns a map of extension element files to extension paths.
|
String |
getFactoryInterface() |
String |
getFlexModuleInterface() |
String |
getFunctionReturnWatcherClass()
Get the fully-qualified name of the runtime class
for internal StaticPropertyWatcher object
Currently this is "mx.binding.StaticPropertyWatcher".
|
Name |
getFunctionReturnWatcherClassName()
Get the AET Name for staticPropertyWatcherClass
|
String |
getGeneratedIDBase()
The base for compiler-generated id's on instance tags that need an id but
don't have one specified in MXML.
|
String |
getHTTPServiceQName() |
List<IImportNode> |
getImplicitImportNodesForMXML(MXMLDialect dialect)
Gets a list of nodes representing the implicit imports, for CodeModel.
|
String[] |
getImplicitImportsForMXML(MXMLDialect dialect)
Gets the imports that are automatically imported into every MXML file.
|
String |
getInstanceOverrideClass() |
Name |
getInstanceOverrideClassName() |
Collection<String> |
getLocales()
Returns the requested locales for this project.
|
String |
getModelClass() |
Name |
getModelClassName() |
String |
getMXMLObjectInterface() |
Integer |
getNamedColor(String colorName) |
IMXMLNamespaceMapping[] |
getNamespaceMappings()
Gets the mappings from MXML namespace URI to manifest files, as specified
by -namespace options.
|
String |
getObjectProxyClass() |
String |
getPropertyOverrideClass() |
Name |
getPropertyOverrideClassName() |
String |
getPropertyWatcherClass()
Get the fully-qualified name of the runtime class
for internal PropertyWatcher object
Currently this is "mx.binding.PropertyWatcher".
|
Name |
getPropertyWatcherClassName()
Get the AET Name for propertyWatcherClass
|
String |
getProxyBaseClass() |
Collection<String> |
getQualifiedClassNamesForManifestNamespaces(Set<String> namespaceURIs)
Find all the qualified names in the manifest information that have a
corresponding MXML tag whose namespace is in the specified set of
namespaces.
|
String |
getRemoteObjectMethodQName() |
String |
getRemoteObjectQName() |
String |
getRepeaterQName() |
String |
getResourceBundleClass() |
String |
getResourceLocale(String path)
Returns the locale of the resource with a given path if the resource
is locale dependent.
|
String |
getResourceManagerClass() |
Name |
getResourceManagerClassName() |
String |
getResourceModuleBaseClass() |
List<RSLSettings> |
getRuntimeSharedLibraryPath()
The list of RSLs configured for this application.
|
String |
getServciesContextRoot()
String that replaces occurrences of "{context.root}" in the
services-config.xml.
|
String |
getServicesXMLPath()
The absolute path of the services-config.xml file.
|
String |
getStateClass() |
String |
getStateClientInterface() |
String |
getStaticPropertyWatcherClass()
Get the fully-qualified name of the runtime class
for internal StaticPropertyWatcher object
Currently this is "mx.binding.StaticPropertyWatcher".
|
Name |
getStaticPropertyWatcherClassName()
Get the AET Name for staticPropertyWatcherClass
|
String |
getStyleOverrideClass() |
Name |
getStyleOverrideClassName() |
ISWFTarget |
getSWFTarget() |
Collection<XMLName> |
getTagNamesForClass(String className)
Uses the manifest information to find all the MXML tags that map to a
specified fully-qualified ActionScript classname, such as as
"spark.controls.Button" |
ITargetSettings |
getTargetSettings()
target settings
|
List<IFileSpecification> |
getThemeFiles() |
List<String> |
getThemeNames()
Get the names of all the themes used in this project.
|
String |
getTransientDeferredInstanceInterface() |
String |
getUIComponentDescriptorClass() |
Name |
getUIComponentDescriptorClassName() |
String |
getVisualElementContainerInterface() |
String |
getWebServiceOperationQName() |
String |
getWebServiceQName() |
String |
getXMLUtilClass() |
Name |
getXMLUtilClassName() |
String |
getXMLWatcherClass() |
Name |
getXMLWatcherClassName() |
void |
invalidateManifestManager()
Delete the current manifest manager.
|
boolean |
isCompatibleOverrideReturnType(ITypeDefinition overrideDefinition,
ITypeDefinition baseDefinition) |
boolean |
isFlex()
Option of enable or prevent various Flex compiler behaviors.
|
boolean |
isManifestComponentLookupOnly(XMLName tagName)
Test is a component is 'lookupOnly' or not.
|
boolean |
isValidTypeConversion(IASNode node,
IDefinition actualDefinition,
IDefinition expectedDefinition,
FunctionDefinition func) |
IEffectDefinition |
resolveEffect(IClassDefinition classDefinition,
String effectName)
Searches the specified class, and its superclasses, for an effect
definition with the specified name.
|
IEventDefinition |
resolveEvent(IClassDefinition classDefinition,
String eventName)
Searches the specified class, and its superclasses, for an event
definition with the specified name.
|
IDefinition |
resolveProperty(IClassDefinition classDefinition,
String propertyName)
Searches the specified class, and its superclasses, for a definition
of a setter or variable with the specified name.
|
IDefinition |
resolveSpecifier(IClassDefinition classDefinition,
String specifierName)
Searches the specified class, and its superclasses, for the definition of
a specified property, event, or style.
|
IStyleDefinition |
resolveStyle(IClassDefinition classDefinition,
String styleName)
Searches the specified class, and its superclasses, for a style
definition with the specified name.
|
IDefinition |
resolveXMLNameToDefinition(XMLName xmlName,
MXMLDialect mxmlDialect)
Resolves an
XMLName , such as
("library://ns.adobe.com/flex/spark", "Button") for an
<s:Button> tag, to a class definition that the manifest
information has associated with the XML name. |
String |
resolveXMLNameToQualifiedName(XMLName xmlName,
MXMLDialect mxmlDialect)
Resolves an XML name, such as
("library://ns.adobe.com/flex/spark", "Button") for an
<s:Button> tag, to a fully-qualified ActionScript class name such
as "spark.components.Button" that the manifest information has associated
with the XML name. |
void |
setActionScriptFileEncoding(String encoding)
Sets the ActionScript file encoding.
|
void |
setBindingClass(String bindingClass) |
void |
setBindingManagerClass(String bindingManagerClass) |
void |
setClassFactoryClass(String classFactoryClass) |
void |
setComponentTagType(String componentTagType)
Sets the fully-qualified type name corresponding to a
|
void |
setContainerInterface(String containerInterface) |
void |
setCSSStyleDeclarationClass(String cssStyleDeclarationClass) |
void |
setDeferredInstanceFromClassClass(String deferredInstanceFromClassClass) |
void |
setDeferredInstanceFromFunctionClass(String deferredInstanceFromFunctionClass) |
void |
setDeferredInstanceInterface(String deferredInstanceInterface) |
void |
setDeferredInstantiationUIComponentInterface(String deferredInstantiationUIComponentInterface) |
void |
setDefineDirectives(Map<String,String> defines)
Set global AS3 compiler configuration values and clear existing definitions.
|
void |
setDesignLayerClass(String name)
Set QName of the class definition for
<fx:DesignLayer> tag. |
void |
setEventOverrideClass(String eventOverrideClass) |
void |
setExcludeNativeJSLibraries(boolean value)
Option to remove the Native JS libraries from external-library-path
and library-path as they shouldn't be any when compiling SWFs / SWCs.
|
void |
setExtensionLibraries(Map<File,List<String>> extensions)
Configures a list of many extensions mapped to a single Extension URI.
|
void |
setFactoryInterface(String factoryInterface) |
void |
setFlex(boolean value)
Option to enable or prevent various Flex compiler behaviors.
|
void |
setFlexModuleInterface(String flexModuleInterface) |
void |
setFunctionReturnWatcherClass(String staticPropertyWatcherClass) |
void |
setHTTPServiceClass(String name)
Set QName for the definition of
<s:HTTPService> tag. |
void |
setImplicitImportsForMXML(String[] implicitImportsForMXML)
Sets the imports that are automatically imported into every MXML file.
|
void |
setIncludeSources(Collection<File> sources)
A collection of source files or directories to add to the target library.
|
void |
setInstanceOverrideClass(String instanceOverrideClass) |
void |
setLocaleDependentResources(Map<String,String> localeDependentResources)
Sets the locale dependent path map for the project.
|
void |
setLocales(Collection<String> locales)
Sets the locales of this project.
|
void |
setModelClass(String modelClass) |
void |
setMXMLObjectInterface(String mxmlObjectInterface) |
void |
setNamedColors(Map<String,Integer> namedColors) |
void |
setNamespaceMappings(List<? extends IMXMLNamespaceMapping> namespaceMappings)
Sets the mappings from MXML namespace URI to manifest files, as specified
by -namespace options.
|
void |
setObjectProxyClass(String objectProxyClass) |
void |
setPropertyOverrideClass(String propertyOverrideClass) |
void |
setPropertyWatcherClass(String propertyWatcherClass) |
void |
setProxyBaseClass(String proxyBaseClass) |
void |
setRemoteObjectClass(String name)
Set QName for the definition of
<s:RemoteObject> tag. |
void |
setRemoteObjectMethodClass(String name)
Set
RemoteObjectOperation QName. |
void |
setRepeaterClass(String name)
Set QName of the class definition for
<mx:Repeater> tag. |
void |
setResourceBundleClass(String resourceBundleClass) |
void |
setResourceManagerClass(String resourceManagerClass) |
void |
setResourceModuleBaseClass(String resourceModuleBaseClass) |
void |
setRuntimeSharedLibraryPath(List<RSLSettings> rslSettings)
Set the RSL library path with an ordered list of RSLs.
|
void |
setServicesXMLPath(String path,
String contextRoot)
Configure this project to use a services-config.xml file.
|
void |
setStateClass(String stateClass) |
void |
setStateClientInterface(String stateClientInterface) |
void |
setStaticPropertyWatcherClass(String staticPropertyWatcherClass) |
boolean |
setStrictXML(boolean strictXML) |
void |
setStyleOverrideClass(String styleOverrideClass) |
void |
setTargetSettings(ITargetSettings value)
target settings
|
void |
setThemeFiles(List<IFileSpecification> files)
Set a list of theme files for this project.
|
void |
setTransientDeferredInstanceInterface(String transientDeferredInstanceInterface) |
void |
setUIComponentDescriptorClass(String uiComponentDescriptorClass) |
void |
setVisualElementContainerInterface(String visualElementContainerInterface) |
void |
setWebServiceClass(String name)
Set QName for the definition of
<s:WebService> tag. |
void |
setWebServiceOperationClass(String name)
Set QName for the definition of
<s:operation> child tag of a
<s:WebService> tag. |
void |
setXMLUtilClass(String xmlUtilClass) |
void |
setXMLWatcherClass(String xmlWatcherClass) |
boolean |
useStrictXML() |
addIncludeSourceFile, addIncludeSourceFile, addProjectDependeny, addSourcePathFile, attachExternalLibrarySourcePath, attachInternalLibrarySourcePath, collectionCompilationUnitsForRootSourceFile, collectProblems, createInvisibleCompilationUnit, createInvisibleCompilationUnit, getASDocBundleDelegate, getAttachedSourceDirectory, getCompatibilityVersion, getCompatibilityVersionString, getDependingProjects, getLibraries, getSourceCompilationUnitFactory, getSourceFileFromLibraryPath, getSourceFileFromSourcePath, getSourcePath, handleAddedFile, hasCompilationUnitForRootSourceFile, invalidateLibraries, invalidateLibrary, isAssetEmbeddingSupported, isFileOnSourcePath, isSupportedSourceFileType, removeIncludeSourceFile, removeProjectDependeny, removeSourceFile, setCompatibilityVersion, setDependencies, setIncludeSources, setLibraries, setSourcePath
addCompilationUnit, addCompilationUnits, addCompilationUnitsAndUpdateDefinitions, addConfigVariable, addConfigVariables, addDependency, addDependency, addDependency, addEmbedCompilationUnit, addGlobalUsedNamespacesToNamespaceSet, addToASTCache, addUnfoundDefinitionDependency, addUnfoundReferencedSourceFileDependency, clearScopeCacheForCompilationUnit, collectConfigProblems, delete, getBuiltinType, getCacheForScope, getCompilationUnit, getCompilationUnits, getCompilationUnits, getDependencies, getDependenciesOnDefinition, getDependenciesOnUnfoundDefinition, getDependenciesOnUnfoundReferencedSourceFile, getDependencyGraph, getDirectDependencies, getDirectReverseDependencies, getFatalProblems, getIncludingCompilationUnits, getProblems, getProjectConfigVariables, getReachableCompilationUnitsInSWFOrder, getScope, getUndefinedValue, getUseParallelCodeGeneration, getWorkspace, initProjectScope, isInliningEnabled, removeAnyUnfoundDependencies, removeCompilationUnit, removeCompilationUnits, removeDependencies, resetScopeCacheForCompilationUnit, resolveQNameToCompilationUnit, resolveQNameToDefinition, setEnableInlining, setProblems, setUseParallelCodeGeneration, unitTestingEntryPointForRemovingCompilationUnit, updatePublicAndInternalDefinitions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addIncludeSourceFile, addIncludeSourceFile, addProjectDependeny, attachExternalLibrarySourcePath, attachInternalLibrarySourcePath, createInvisibleCompilationUnit, createInvisibleCompilationUnit, getAttachedSourceDirectory, getCompatibilityVersion, getCompatibilityVersionString, getDependingProjects, getLibraries, getSourceFileFromSourcePath, getSourcePath, invalidateLibraries, invalidateLibrary, isSupportedSourceFileType, removeIncludeSourceFile, removeProjectDependeny, setDependencies, setIncludeSources, setLibraries, setSourcePath
delete, getBuiltinType, getCompilationUnits, getCompilationUnits, getDirectDependencies, getDirectReverseDependencies, getIncludingCompilationUnits, getProblems, getReachableCompilationUnitsInSWFOrder, getScope, getUndefinedValue, getWorkspace, isAssetEmbeddingSupported, isInliningEnabled, resolveQNameToCompilationUnit, resolveQNameToDefinition, setProblems, setUseParallelCodeGeneration
setCompatibilityVersion, setSourcePath
public FlexProject(Workspace workspace, IASDocBundleDelegate asDocBundleDelegate)
workspace
- The Workspace
containing this project.asDocBundleDelegate
- IASDocBundleDelegate
the new project will use to find
ASDoc comments for definitions from SWCs.public FlexProject(Workspace workspace)
workspace
- The Workspace
containing this project.public ITargetSettings getTargetSettings()
public void setTargetSettings(ITargetSettings value)
public ISWFTarget getSWFTarget()
public ISWFTarget createSWFTarget(ITargetSettings targetSettings, ITargetProgressMonitor progressMonitor) throws InterruptedException
ICompilerProject
createSWFTarget
in interface ICompilerProject
createSWFTarget
in class CompilerProject
targetSettings
- The settings to use for this targetprogressMonitor
- to collect progress information, can be null
InterruptedException
public ISWCTarget createSWCTarget(ITargetSettings targetSettings, ITargetProgressMonitor progressMonitor) throws InterruptedException
IFlexProject
createSWCTarget
in interface IFlexProject
targetSettings
- The settings to use for this targetprogressMonitor
- to collect progress information, can be null
InterruptedException
public int getColorAsInt(String colorValue) throws NumberFormatException
colorValue
- may be a named color, or a String in
any format supported by Integer.decode(). May not be null.NumberFormatException
- if the value is not a named color and is not
properly formatted for Integer.decode().NullPointerException
- is colorValue is null.public String getComponentTagType()
public void setComponentTagType(String componentTagType)
componentTagType
- The type name as a String.public String getStateClass()
public void setStateClass(String stateClass)
public String getStateClientInterface()
public void setStateClientInterface(String stateClientInterface)
public String getInstanceOverrideClass()
public Name getInstanceOverrideClassName()
public void setInstanceOverrideClass(String instanceOverrideClass)
public String getPropertyOverrideClass()
public Name getPropertyOverrideClassName()
public void setPropertyOverrideClass(String propertyOverrideClass)
public String getStyleOverrideClass()
public Name getStyleOverrideClassName()
public void setStyleOverrideClass(String styleOverrideClass)
public String getEventOverrideClass()
public Name getEventOverrideClassName()
public void setEventOverrideClass(String eventOverrideClass)
public String getDeferredInstanceInterface()
public void setDeferredInstanceInterface(String deferredInstanceInterface)
public String getTransientDeferredInstanceInterface()
public void setTransientDeferredInstanceInterface(String transientDeferredInstanceInterface)
public String getDeferredInstanceFromClassClass()
public void setDeferredInstanceFromClassClass(String deferredInstanceFromClassClass)
public String getDeferredInstanceFromFunctionClass()
public Name getDeferredInstanceFromFunctionName()
public void setDeferredInstanceFromFunctionClass(String deferredInstanceFromFunctionClass)
public String getFactoryInterface()
public void setFactoryInterface(String factoryInterface)
public String getMXMLObjectInterface()
public void setMXMLObjectInterface(String mxmlObjectInterface)
public String getProxyBaseClass()
public void setProxyBaseClass(String proxyBaseClass)
public String getClassFactoryClass()
public void setClassFactoryClass(String classFactoryClass)
public String getContainerInterface()
public void setContainerInterface(String containerInterface)
public String getVisualElementContainerInterface()
public void setVisualElementContainerInterface(String visualElementContainerInterface)
public String getResourceBundleClass()
public void setResourceBundleClass(String resourceBundleClass)
public String getResourceManagerClass()
public Name getResourceManagerClassName()
public void setResourceManagerClass(String resourceManagerClass)
public String getBindingManagerClass()
public Name getBindingManagerClassName()
public String getResourceModuleBaseClass()
public void setResourceModuleBaseClass(String resourceModuleBaseClass)
public void setBindingManagerClass(String bindingManagerClass)
public String getXMLUtilClass()
public Name getXMLUtilClassName()
public void setXMLUtilClass(String xmlUtilClass)
public String getBindingClass()
public Name getBindingClassName()
getBindingClass()
public void setBindingClass(String bindingClass)
public String getPropertyWatcherClass()
public String getObjectProxyClass()
public void setObjectProxyClass(String objectProxyClass)
public Name getPropertyWatcherClassName()
getPropertyWatcherClass()
public void setPropertyWatcherClass(String propertyWatcherClass)
public String getStaticPropertyWatcherClass()
public Name getStaticPropertyWatcherClassName()
getStaticPropertyWatcherClass()
public void setStaticPropertyWatcherClass(String staticPropertyWatcherClass)
public Name getXMLWatcherClassName()
public String getXMLWatcherClass()
public void setXMLWatcherClass(String xmlWatcherClass)
public String getFunctionReturnWatcherClass()
public Name getFunctionReturnWatcherClassName()
getStaticPropertyWatcherClass()
public void setFunctionReturnWatcherClass(String staticPropertyWatcherClass)
public String getUIComponentDescriptorClass()
public Name getUIComponentDescriptorClassName()
public void setUIComponentDescriptorClass(String uiComponentDescriptorClass)
public String getModelClass()
public Name getModelClassName()
public void setModelClass(String modelClass)
public String getCSSStyleDeclarationClass()
public Name getCSSStyleDeclarationClassName()
public void setCSSStyleDeclarationClass(String cssStyleDeclarationClass)
public String getFlexModuleInterface()
public void setFlexModuleInterface(String flexModuleInterface)
public String getDeferredInstantiationUIComponentInterface()
public void setDeferredInstantiationUIComponentInterface(String deferredInstantiationUIComponentInterface)
public String[] getImplicitImportsForMXML(MXMLDialect dialect)
dialect
- - the dialect of the MXML language being compiled.flash.display.*"
.public List<IImportNode> getImplicitImportNodesForMXML(MXMLDialect dialect)
dialect
- - the dialect of the MXML language being compiled.MXMLImplicitImportNode
objects.public void setImplicitImportsForMXML(String[] implicitImportsForMXML)
implicitImportsForMXML
- An array of Strings such as
"flash.display.*"
.public IMXMLNamespaceMapping[] getNamespaceMappings()
getNamespaceMappings
in interface IFlexProject
IMXMLNamespaceMapping
objects.public void invalidateManifestManager()
public String resolveXMLNameToQualifiedName(XMLName xmlName, MXMLDialect mxmlDialect)
IXMLNameResolver
("library://ns.adobe.com/flex/spark", "Button")
for an
<s:Button>
tag, to a fully-qualified ActionScript class name such
as "spark.components.Button" that the manifest information has associated
with the XML name.
This method handles both manifest namespaces (such as in the above
example) and package namespaces such as MXMLFileScope.resolveTagToQualifiedName(IMXMLTagData)
should be used instead.
resolveXMLNameToQualifiedName
in interface IXMLNameResolver
xmlName
- An XMLName
to resolve to a fully-qualified
ActionScript class name.mxmlDialect
- The MXMLDialect
of the document in which the
specified XMLName
was encountered.null
if the
tag has a manifest namespace and isn't found in the MXMLManifestManager.public IDefinition resolveXMLNameToDefinition(XMLName xmlName, MXMLDialect mxmlDialect)
IXMLNameResolver
XMLName
, such as
("library://ns.adobe.com/flex/spark", "Button")
for an
<s:Button>
tag, to a class definition that the manifest
information has associated with the XML name.
This method handles both manifest namespaces (such as in the above
example) and package namespaces such as
resolveXMLNameToDefinition
in interface IXMLNameResolver
xmlName
- XMLName
of a tag.mxmlDialect
- The MXMLDialect
of the document in which the
specified XMLName
was encountered.null
if
the tag has a manifest namespace and isn't found in the
MXMLManifestManager.public IDefinition resolveSpecifier(IClassDefinition classDefinition, String specifierName)
classDefinition
- The class on which the property, event, or style
lookup should start.specifierName
- The name of the property, event, or style.IDefinition
object for the specifier, or
null
if the specified name doesn't resolve to a property, an
event, or a style.public IDefinition resolveProperty(IClassDefinition classDefinition, String propertyName)
classDefinition
- The class.propertyName
- The name of the property to search for.public IEventDefinition resolveEvent(IClassDefinition classDefinition, String eventName)
classDefinition
- The class.eventName
- The name of the event to search for.public IStyleDefinition resolveStyle(IClassDefinition classDefinition, String styleName)
classDefinition
- The class.styleName
- The name of the style to search for.public IEffectDefinition resolveEffect(IClassDefinition classDefinition, String effectName)
classDefinition
- The class.effectName
- The name of the effect to search for.public Collection<XMLName> getTagNamesForClass(String className)
"spark.controls.Button"
getTagNamesForClass
in interface IFlexProject
className
- Fully-qualified ActionScript classname, such as as
"spark.controls.Button"
XMLName
's representing a MXML tags, such
as a "Button"
tag in the namespace
"library://ns.adobe.com/flex/spark"
.public Collection<String> getQualifiedClassNamesForManifestNamespaces(Set<String> namespaceURIs)
namespaceURIs
- Set set of MXML tag namespace URIs such as:
"library://ns.adobe.com/flex/spark"
spark.components.Button
for example ) that have correponding
MXML tags in the manifest information whose namespaces are in the
specified set of namespaces.MXMLManifestManager.getQualifiedNamesForNamespaces(Set, boolean)
public boolean isManifestComponentLookupOnly(XMLName tagName)
tagName
- An XMLName
representing an MXML tag,
such as a "Button"
tag
in the namespace "library://ns.adobe.com/flex/spark"
.public ICSSManager getCSSManager()
IFlexProject
getCSSManager
in interface IFlexProject
CSSManager
of the project.public CSSCompilationSession getCSSCompilationSession()
public String getServciesContextRoot()
public String getServicesXMLPath()
getServicesXMLPath
in interface IFlexProject
public void setServicesXMLPath(String path, String contextRoot)
setServicesXMLPath
in interface IWriteOnlyProjectSettings
path
- an absolute path to the services-config.xml file.contextRoot
- sets the value of the {context.root} token, which is
often used in channel definitions in the services-config.xml file.public Collection<String> getLocales()
IFlexProject
getLocales
in interface IFlexProject
public void setLocales(Collection<String> locales)
setLocales
in interface IWriteOnlyProjectSettings
locales
- locales to setpublic String getResourceLocale(String path)
IFlexProject
getResourceLocale
in interface IFlexProject
path
- path of a file/directory for which to determine the localenull
if the resource is not locale
dependent.public void setLocaleDependentResources(Map<String,String> localeDependentResources)
setLocaleDependentResources
in interface IFlexProject
localeDependentResources
- map that contains project's locale
dependent resourcespublic void setWebServiceClass(String name)
<s:WebService>
tag.name
- QName of WebService
class.public String getWebServiceQName()
public void setWebServiceOperationClass(String name)
<s:operation>
child tag of a
<s:WebService>
tag.name
- QName of Operation
class.public String getWebServiceOperationQName()
<s:operation>
child tag
of a <s:WebService>
tag.public void setRemoteObjectMethodClass(String name)
RemoteObjectOperation
QName.name
- QName.public String getRemoteObjectMethodQName()
<s:method>
child tag of
a <s:RemoteObject>
tag.public void setRemoteObjectClass(String name)
<s:RemoteObject>
tag.name
- QName of RemoteObject
class.public String getRemoteObjectQName()
<s:RemoteObject>
tag.public void setHTTPServiceClass(String name)
<s:HTTPService>
tag.name
- QName of HTTPService
class.public String getHTTPServiceQName()
<s:HTTPService>
tag.public void setDesignLayerClass(String name)
<fx:DesignLayer>
tag.name
- QName of DesignLayer
class.public String getDesignLayerQName()
<fx:DesignLayer>
tag.public void setRepeaterClass(String name)
<mx:Repeater>
tag.name
- QName of Repeater
class.public String getRepeaterQName()
<mx:Repeater>
tag.public void setIncludeSources(Collection<File> sources) throws InterruptedException
IWriteOnlyProjectSettings
include-sources
option of the
compc
compiler.setIncludeSources
in interface IWriteOnlyProjectSettings
sources
- A collection of source files or directories.InterruptedException
public void setActionScriptFileEncoding(String encoding)
IWriteOnlyProjectSettings
mxmlc/compc --compiler.actionscript-file-encoding
.
By default, the encoding is UTF-8
.
setActionScriptFileEncoding
in interface IWriteOnlyProjectSettings
encoding
- charactere encoding, e.g. UTF-8
, Big5
public String getActionScriptFileEncoding()
IFlexProject
getActionScriptFileEncoding
in interface IFlexProject
public void setDefineDirectives(Map<String,String> defines)
IWriteOnlyProjectSettings
mxmlc/compc --define
option
once for each definition in the map.setDefineDirectives
in interface IWriteOnlyProjectSettings
defines
- A map of qualified names/configuration constants, e.g. "CONFIG::debugging" or "APP::version",
to value constants, e.g. "true" or "!CONFIG::release" or "3.0". Null clears
the existing definitions.public void setExtensionLibraries(Map<File,List<String>> extensions)
IWriteOnlyProjectSettings
setExtensionLibraries
in interface IWriteOnlyProjectSettings
extensions
- a map of extension element files to extension paths.public Map<File,List<String>> getExtensionLibraries()
IFlexProject
getExtensionLibraries
in interface IFlexProject
public void setNamespaceMappings(List<? extends IMXMLNamespaceMapping> namespaceMappings)
setNamespaceMappings
in interface IWriteOnlyProjectSettings
setNamespaceMappings
in interface IFlexProject
namespaceMappings
- An array of IMXMLNamespaceMapping
objects.public List<RSLSettings> getRuntimeSharedLibraryPath()
IFlexProject
getRuntimeSharedLibraryPath
in interface IFlexProject
RSLSettings
where each entry in the list is an
RSL to load at runtime.public void setRuntimeSharedLibraryPath(List<RSLSettings> rslSettings)
IFlexProject
setRuntimeSharedLibraryPath
in interface IFlexProject
rslSettings
- Each RSLSettings
in the list describes an RSL and
its failovers. If null, the list of RSLs is reset.public void setThemeFiles(List<IFileSpecification> files)
files
- A list of theme file specifications.public List<IFileSpecification> getThemeFiles()
public Set<String> computeLibraryDependencies(File targetLibrary, DependencyTypeSet dependencySet) throws LibraryCircularDependencyException
IFlexProject
computeLibraryDependencies
in interface IFlexProject
targetLibrary
- The library to find dependencies for. May not be
null.dependencySet
- The types of dependencies to consider when
determining the library's dependencies. If this parameter is null or an empty set, then all
dependencies will be considered.LibraryCircularDependencyException
public List<String> computeLibraryDependencyOrder(DependencyTypeSet dependencySet) throws LibraryCircularDependencyException
IFlexProject
computeLibraryDependencyOrder
in interface IFlexProject
dependencySet
- The types of dependencies to consider when
determining the dependency order. If this parameter is null or an empty set, then all
dependencies will be considered.LibraryCircularDependencyException
public LibraryDependencyGraph createLibraryDependencyGraph(DependencyTypeSet dependencySet)
dependencySet
- The type of dependencies that are included in the
graph. Passing null or an empty set will result in all dependencies
being included in the graph.public List<String> getThemeNames()
IFlexProject
getThemeNames
in interface IFlexProject
public void clean()
ICompilerProject
clean
in interface ICompilerProject
clean
in class CompilerProject
public boolean isFlex()
IFlexProject
isFlex
in interface IFlexProject
public void setFlex(boolean value)
IWriteOnlyProjectSettings
setFlex
in interface IWriteOnlyProjectSettings
value
- true to turn on Flex behaviors, false otherwise.public void setExcludeNativeJSLibraries(boolean value)
IWriteOnlyProjectSettings
setExcludeNativeJSLibraries
in interface IWriteOnlyProjectSettings
value
- true to turn on the behaviors, false otherwise.public String getActualPackageName(String packageName)
CompilerProject
getActualPackageName
in interface ICompilerProject
getActualPackageName
in class CompilerProject
packageName
- The package namepublic IDefinition doubleCheckAmbiguousDefinition(ASScope scope, String name, IDefinition def1, IDefinition def2)
CompilerProject
doubleCheckAmbiguousDefinition
in interface ICompilerProject
doubleCheckAmbiguousDefinition
in class CompilerProject
scope
- The current scope.name
- Definition name.def1
- One possibility.def2
- The other possibility.public boolean useStrictXML()
public boolean setStrictXML(boolean strictXML)
public String getGeneratedIDBase()
public boolean isCompatibleOverrideReturnType(ITypeDefinition overrideDefinition, ITypeDefinition baseDefinition)
isCompatibleOverrideReturnType
in interface ICompilerProject
isCompatibleOverrideReturnType
in class CompilerProject
overrideDefinition
- The definition overriding the base definition.baseDefinition
- The definition being overridden.public boolean isValidTypeConversion(IASNode node, IDefinition actualDefinition, IDefinition expectedDefinition, FunctionDefinition func)
isValidTypeConversion
in interface ICompilerProject
isValidTypeConversion
in class CompilerProject
node
- The node being converted.actualDefinition
- The actual definition.expectedDefinition
- The expected definition.func
- The function being called.Copyright © 2016 The Apache Software Foundation. All rights reserved.