Package | Description |
---|---|
org.apache.flex.compiler.clients |
This package contains classes implementing four compiler command-line tools:
MXMLC , COMPC , ASC , and Optimizer . |
org.apache.flex.compiler.internal.definitions |
This package is the internal counterpart of the external
org.apache.flex.compiler.definitions package. |
org.apache.flex.compiler.internal.driver.js | |
org.apache.flex.compiler.internal.driver.mxml | |
org.apache.flex.compiler.internal.embedding | |
org.apache.flex.compiler.internal.projects |
This package is the internal counterpart of the external
org.apache.flex.compiler.projects package. |
org.apache.flex.compiler.internal.scopes |
This package is the internal counterpart of the external
org.apache.flex.compiler.scopes package. |
org.apache.flex.compiler.internal.targets |
This package is the internal counterpart of the external
org.apache.flex.compiler.targets package. |
org.apache.flex.compiler.internal.units |
This package is the internal counterpart of the external
org.apache.flex.compiler.units package. |
org.apache.flex.compiler.internal.workspaces |
This package is the internal counterpart of the external
org.apache.flex.compiler.workspaces package. |
Constructor and Description |
---|
Optimizer.OptimizerSWFTarget(ISWF swf,
CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor) |
Modifier and Type | Method and Description |
---|---|
EmbedData |
ClassDefinition.getEmbeddedAsset(CompilerProject project,
Collection<ICompilerProblem> problems)
Get any embedded data decorating the class definition
|
void |
ClassDefinition.verifyHostComponent(CompilerProject project,
Collection<ICompilerProblem> problems)
If there is host component meta data on the class, run semantic checks on
it.
|
Modifier and Type | Method and Description |
---|---|
ICompilationUnit |
JSSourceFileHandler.createCompilationUnit(CompilerProject proj,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname,
String locale)
Creates a new
ICompilationUnit instance for the specified project
and file. |
boolean |
JSSourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale)
Determines if a new
ICompilationUnit should be created
for the specified file, qualified name, and locale. |
Constructor and Description |
---|
JSCompilationUnit(CompilerProject project,
String path)
Create a compilation unit from an ABC file.
|
JSCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority) |
JSCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
String qname) |
Modifier and Type | Method and Description |
---|---|
ICompilationUnit |
MXMLSourceFileHandler.createCompilationUnit(CompilerProject proj,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname,
String locale)
Creates a new
ICompilationUnit instance for the specified project
and file. |
boolean |
MXMLSourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale)
Determines if a new
ICompilationUnit should be created
for the specified file, qualified name, and locale. |
Modifier and Type | Method and Description |
---|---|
boolean |
EmbedData.addAttribute(CompilerProject project,
ISourceLocation location,
String key,
String value,
Collection<ICompilerProblem> problems)
Add an attribute
|
boolean |
EmbedData.createTranscoder(CompilerProject project,
ISourceLocation location,
Collection<ICompilerProblem> problems) |
Modifier and Type | Class and Description |
---|---|
class |
ASCProject
Implementation class for an asc style project.
|
class |
ASProject
Implementation base class to implement functionality common to all
IASProject implementations.
|
class |
FlexJSProject |
class |
FlexProject
FlexProject extends ASProject to add support for compiling
.mxml, .css, and .properties files. |
Modifier and Type | Method and Description |
---|---|
ICompilationUnit |
ResourceBundleSourceFileHandler.createCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname,
String locale) |
ICompilationUnit |
MXMLSourceFileHandler.createCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname,
String locale) |
ICompilationUnit |
ISourceFileHandler.createCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority priority,
int order,
String qname,
String locale)
Creates a new
ICompilationUnit instance for the specified project
and file. |
ICompilationUnit |
FXGSourceFileHandler.createCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname,
String locale) |
ICompilationUnit |
ASSourceFileHandler.createCompilationUnit(CompilerProject project,
String path,
DefinitionPriority.BasePriority basePriority,
int order,
String qname,
String locale) |
IProjectConfigVariables |
ConfigManager.getProjectConfig(CompilerProject project)
Returns the
IProjectConfigVariables object for the given project. |
protected ASProjectScope |
CompilerProject.initProjectScope(CompilerProject project)
Init the project scope.
|
boolean |
ResourceBundleSourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale) |
boolean |
MXMLSourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale) |
boolean |
ISourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale)
Determines if a new
ICompilationUnit should be created
for the specified file, qualified name, and locale. |
boolean |
FXGSourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale) |
boolean |
ASSourceFileHandler.needCompilationUnit(CompilerProject project,
String path,
String qname,
String locale) |
Modifier and Type | Method and Description |
---|---|
CompilerProject |
ASProjectScope.getProject()
Gets the
CompilerProject that owns this scope. |
Modifier and Type | Method and Description |
---|---|
void |
TypeScope.addImplicitOpenNamespaces(CompilerProject compilerProject,
Set<INamespaceDefinition> result) |
void |
ScopeView.addImplicitOpenNamespaces(CompilerProject compilerProject,
Set<INamespaceDefinition> result) |
void |
PackageScope.addImplicitOpenNamespaces(CompilerProject compilerProject,
Set<INamespaceDefinition> result) |
void |
ASScope.addImplicitOpenNamespaces(CompilerProject compilerProject,
Set<INamespaceDefinition> result) |
void |
ASFileScope.addImplicitOpenNamespaces(CompilerProject compilerProject,
Set<INamespaceDefinition> result) |
protected void |
TypeScope.addImplicitOpenNamespaces(CompilerProject compilerProject,
Set<INamespaceDefinition> result,
org.apache.flex.compiler.internal.scopes.TypeScope.ScopeKind lookupKind) |
protected void |
PackageScope.addNamespacesFromContainingScope(CompilerProject compilerProject,
Set<INamespaceDefinition> result)
Add the open namespaces from the containing scope to the namespace set passed in
Package scopes will only add the implicit namespaces from the file scope if this is a .as file
|
protected void |
ASScope.addNamespacesFromContainingScope(CompilerProject compilerProject,
Set<INamespaceDefinition> result)
Add the open namespaces from the containing scope to the namespace set passed in
|
protected void |
ASScope.findProperty(Collection<IDefinition> accumulator,
CompilerProject project,
String baseName,
NamespaceSetPredicate nsPred,
DependencyType dt,
boolean findAll)
This is the implementation of the various
findproperty() methods. |
void |
ASScope.findProperty(Collection<IDefinition> accumulator,
CompilerProject project,
String baseName,
Set<INamespaceDefinition> namespaceSet,
DependencyType dt,
boolean findAll)
This is the core
findproperty() method. |
List<IDefinition> |
ASScope.findProperty(CompilerProject project,
String baseName,
com.google.common.base.Predicate<IDefinition> additional,
Set<INamespaceDefinition> namespaceSet,
DependencyType dt)
Version of findProperty that determine the results based on the namespace set passed in,
along with any additional constraints passed in via the
Predicate . |
List<IDefinition> |
ASScope.findProperty(CompilerProject project,
String baseName,
Set<INamespaceDefinition> namespaceSet,
DependencyType dt)
This is called by
ASScopeCache when there was a cache miss. |
void |
ScopeView.getAllLocalProperties(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet,
INamespaceDefinition extraNamespace) |
void |
ASScopeBase.getAllLocalProperties(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet,
INamespaceDefinition extraNamespace)
Adds all local definitions from this scope to the specified collections
of definitions that have a namespace qualifier in the specified
definition set.
|
void |
ASProjectScope.getAllProperties(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet)
Adds all definitions ( including definitions from base types ) in the
current scope to the specified collections of definitions that have a
namespace qualifier in the specified definition set.
|
void |
TypeScope.getAllPropertiesForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet) |
void |
ScopeView.getAllPropertiesForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet) |
void |
ASScope.getAllPropertiesForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet)
Adds all definitions ( including definitions from base types ) in the
current scope to the specified collections of definitions that have a
namespace qualifier in the specified definition set, when looking for
definitions through a member access.
|
protected void |
TypeScope.getAllPropertiesForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet,
org.apache.flex.compiler.internal.scopes.TypeScope.ScopeKind lookupKind) |
void |
TypeScope.getAllPropertiesForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet) |
void |
ScopeView.getAllPropertiesForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet) |
void |
ASScope.getAllPropertiesForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet)
Adds all definitions ( including definitions from base types ) in the
current scope to the specified collections of definitions that have a
namespace qualifier in the specified definition set, when looking for
definitions in the scope chain.
|
protected void |
TypeScope.getAllPropertiesForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
Set<INamespaceDefinition> namespaceSet,
org.apache.flex.compiler.internal.scopes.TypeScope.ScopeKind lookupKind) |
protected void |
PackageScope.getContainingScopeExplicitImports(CompilerProject project,
String name,
Set<INamespaceDefinition> nsSet)
Get the additional namespaces for a reference, if the name has been explicitly imported in
a containing scope.
|
protected void |
ASScope.getContainingScopeExplicitImports(CompilerProject project,
String name,
Set<INamespaceDefinition> nsSet)
Get the additional namespaces for a reference, if the name has been explicitly imported in
a containing scope
|
Set<INamespaceDefinition> |
ScopeView.getExplicitImportQualifiers(CompilerProject project,
String name) |
Set<INamespaceDefinition> |
ASScope.getExplicitImportQualifiers(CompilerProject project,
String name)
Return the additional namespaces for a reference, if the name has been
explicitly imported.
|
List<IDefinition> |
ASScope.getPropertiesByNameForMemberAccess(CompilerProject project,
String memberName,
Set<INamespaceDefinition> namespaceSet)
Gets all definitions (including definitions from base types) that have
the specified name to the specified collections of definitions that have
a namespace qualifier in the specified definition set, when looking for
definitions through a member access.
|
IDefinition |
ASScope.getPropertyByNameForMemberAccess(CompilerProject project,
String memberName,
Set<INamespaceDefinition> namespaceSet)
Gets the definition (including definitions from base types) that has
the specified name and that has a namespace qualifier in the specified
namespace set, when looking for definitions through a member access.
|
protected void |
TypeScope.getPropertyForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll) |
protected void |
ScopeView.getPropertyForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll) |
protected void |
ASScope.getPropertyForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll)
Finds all the definitions in this scope that match the specified
namespace set and base name.
|
protected void |
TypeScope.getPropertyForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll,
org.apache.flex.compiler.internal.scopes.TypeScope.ScopeKind lookupKind) |
void |
ASScope.getPropertyForMemberAccess(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet,
boolean findAll)
Finds all the definitions in this scope that match the specified
namespace set and base name.
|
protected void |
TypeScope.getPropertyForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll) |
protected void |
ScopeView.getPropertyForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll) |
protected void |
ASScope.getPropertyForScopeChain(CompilerProject project,
Collection<IDefinition> defs,
String baseName,
NamespaceSetPredicate namespaceSet,
boolean findAll)
Implementation of getPropertyForScopeChain.
|
Constructor and Description |
---|
ASProjectScope(CompilerProject project)
Constructor.
|
ASScopeCache(CompilerProject project,
ASScope scope) |
Modifier and Type | Field and Description |
---|---|
protected CompilerProject |
Target.project |
Constructor and Description |
---|
AppSWFTarget(CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor)
Constructor
|
AppSWFTarget(CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor,
Set<ICompilationUnit> additionalRootedCompilationUnits)
Constructor
|
LibrarySWFTarget(CompilerProject project,
ITargetSettings targetSettings,
Set<ICompilationUnit> rootedCompilationUnits) |
SWFTarget(CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor) |
Target(CompilerProject project,
ITargetSettings targetSettings,
ITargetProgressMonitor progressMonitor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
CompilerProject |
CompilationUnitBase.getProject() |
Modifier and Type | Method and Description |
---|---|
static ASCompilationUnit |
ASCompilationUnit.createMainCompilationUnitForASC(CompilerProject project,
IFileSpecification mainFile,
ASC asc)
Create a main compilation unit for ASC client.
|
static EmbedCompilationUnit |
EmbedCompilationUnitFactory.getCompilationUnit(CompilerProject project,
String containingSourceFilename,
ISourceLocation location,
IMetaTagAttribute[] attributes,
Collection<ICompilerProblem> problems)
Return an EmbedCompilationUnit based on information from the EmbedData.
|
static EmbedData |
EmbedCompilationUnitFactory.getEmbedData(CompilerProject project,
String specifiedQName,
String containingSourceFilename,
ISourceLocation location,
IMetaTagAttribute[] attributes,
Collection<ICompilerProblem> problems)
Return an EmbedData based on information from the meta data attributes.
|
Modifier and Type | Field and Description |
---|---|
protected Map<CompilerProject,Object> |
Workspace.projects |
Modifier and Type | Method and Description |
---|---|
void |
Workspace.addProject(CompilerProject project) |
Copyright © 2016 The Apache Software Foundation. All rights reserved.