Package | Description |
---|---|
org.apache.flex.compiler.common |
This package contains miscellaneous classes and interfaces
used by other compiler packages.
|
org.apache.flex.compiler.definitions |
This package contains interfaces for various kinds of definitions
found in AS and MXML files.
|
org.apache.flex.compiler.definitions.references |
This package contains interfaces related to inter-definition references.
|
org.apache.flex.compiler.internal.abc | |
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.definitions.references | |
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.semantics |
Modifier and Type | Method and Description |
---|---|
INamespaceDefinition |
IImportTarget.getNamespace()
Gets the
INamespaceDefinition for the imported package's public namespace. |
INamespaceDefinition |
ASImportTarget.getNamespace() |
Modifier and Type | Method and Description |
---|---|
Set<INamespaceDefinition> |
Multiname.getNamespaceSet()
Gets the namespace set for this
Multiname . |
Modifier and Type | Method and Description |
---|---|
static Multiname |
Multiname.create(Set<INamespaceDefinition> nsset,
String baseName) |
Constructor and Description |
---|
Multiname(Set<INamespaceDefinition> namespaceSet,
String baseName) |
Modifier and Type | Interface and Description |
---|---|
static interface |
INamespaceDefinition.IAnyNamespaceDefinition
Interface implemented by the any namespace definition.
|
static interface |
INamespaceDefinition.ICodeModelImplicitDefinitionNamespaceDefinition
Interface implemented by the code model implicit definition namespace
definition.
|
static interface |
INamespaceDefinition.IFilePrivateNamespaceDefinition
Interface implemented by all file private namespace definitions.
|
static interface |
INamespaceDefinition.IInterfaceNamespaceDefinition
Interface implemented by all interface namespace definitions.
|
static interface |
INamespaceDefinition.IInternalNamespaceDefinition
Interface implemented by all internal namespace definitions.
|
static interface |
INamespaceDefinition.ILanguageNamespaceDefinition
Interface implemented by all language namespace definitions.
|
static interface |
INamespaceDefinition.INamespaceWithPackageName
Interface implemented by all language namespace definitions associated
with a package.
|
static interface |
INamespaceDefinition.IPrivateNamespaceDefinition
Interface implemented by all private namespace definitions.
|
static interface |
INamespaceDefinition.IProtectedNamespaceDefinition
Interface implemented by all protected namespace definitions.
|
static interface |
INamespaceDefinition.IPublicNamespaceDefinition
Interface implemented by all public namespace definitions.
|
static interface |
INamespaceDefinition.IStaticProtectedNamespaceDefinition
Interface implemented by all static protected namespace definitions.
|
Modifier and Type | Method and Description |
---|---|
INamespaceDefinition |
IQualifiers.getFirst()
Get the first namespace.
|
INamespaceDefinition |
ITypeDefinition.getProtectedNamespaceReference()
Gets the
INamespaceDefinition that represents the protected
namespace for this type. |
INamespaceDefinition |
ITypeDefinition.getStaticProtectedNamespaceReference()
Gets the
INamespaceDefinition that represents the static
protected namespace for this type. |
INamespaceDefinition |
IDefinition.resolveNamespace(ICompilerProject project)
Resolves the namespace specified for this definition to its
INamespaceDefinition.
|
Modifier and Type | Method and Description |
---|---|
Set<INamespaceDefinition> |
IQualifiers.getNamespaceSet()
Gets the set of namespaces.
|
Modifier and Type | Method and Description |
---|---|
boolean |
INamespaceDefinition.equals(INamespaceDefinition namespace) |
Modifier and Type | Method and Description |
---|---|
INamespaceDefinition |
INamespaceReference.resolveNamespaceReference(ICompilerProject project)
Resolves this namespace reference to a namespace definition.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<INamespaceDefinition> |
IResolvedQualifiersReference.getQualifiers()
Gets the resolved qualifiers for this reference.
|
Modifier and Type | Method and Description |
---|---|
static IResolvedQualifiersReference |
ReferenceFactory.resolvedQualifierQualifiedReference(IWorkspace workspace,
INamespaceDefinition namespace,
String baseName)
Generates an
IReference for a base name qualified by an
INamespaceDefinition . |
Modifier and Type | Method and Description |
---|---|
static IResolvedQualifiersReference |
ReferenceFactory.multinameReference(IWorkspace workspace,
Set<INamespaceDefinition> namespaces,
String baseName)
Generates an
IReference for a multiname coming from an ABC. |
Modifier and Type | Method and Description |
---|---|
INamespaceDefinition |
ABCScopeBuilder.getNamespaceReferenceForNamespace(Namespace ns)
Constructs or otherwise obtains an
INamespaceReference for an
Namespace . |
Modifier and Type | Interface and Description |
---|---|
static interface |
NamespaceDefinition.INamepaceDeclarationDirective
Implemented by namespace definitions constructed from namespace
definition directives found in source code.
|
Modifier and Type | Class and Description |
---|---|
class |
NamespaceDefinition
Instances of this class represent definitions of ActionScript namespaces in
the symbol table.
|
Modifier and Type | Method and Description |
---|---|
static INamespaceDefinition |
NamespaceDefinition.getAS3NamespaceDefinition() |
INamespaceDefinition |
NamespaceDefinition.getFirst() |
INamespaceDefinition |
InterfaceDefinition.getProtectedNamespaceReference() |
INamespaceDefinition |
ClassTraitsDefinition.getProtectedNamespaceReference() |
INamespaceDefinition |
AppliedVectorDefinition.getProtectedNamespaceReference() |
INamespaceDefinition |
InterfaceDefinition.getStaticProtectedNamespaceReference() |
INamespaceDefinition |
ClassTraitsDefinition.getStaticProtectedNamespaceReference() |
INamespaceDefinition |
AppliedVectorDefinition.getStaticProtectedNamespaceReference() |
INamespaceDefinition |
NamespaceDefinition.INamepaceDeclarationDirective.resolveConcreteDefinition(ICompilerProject project)
Resolve the initializer if it refers to another namespace, eg:
namespace ns1 = SomeOtherNamespace; This will just return itself if
no additional resolution is necessary.
|
INamespaceDefinition |
NamespaceDefinition.INamepaceDeclarationDirective.resolveConcreteDefinition(ICompilerProject project,
org.apache.flex.compiler.internal.definitions.NamespaceDefinition.NamespaceDirectiveResolver.NamespaceForwardReferencePredicate pred)
Resolve the initializer if it refers to another namespace, eg:
namespace ns1 = SomeOtherNamespace; This will just return itself if
no additional resolution is necessary.
|
INamespaceDefinition |
DefinitionBase.resolveNamespace(ICompilerProject project) |
INamespaceDefinition |
NamespaceDefinition.resolveNamespaceReference(ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
Set<INamespaceDefinition> |
InterfaceDefinition.getInterfaceNamespaceSet(ICompilerProject project)
Generate a namespace set to use for references through a reference with a
static type of an interface.
|
Set<INamespaceDefinition> |
NamespaceDefinition.getNamespaceSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
NamespaceDefinition.equals(INamespaceDefinition ns) |
Modifier and Type | Method and Description |
---|---|
Set<INamespaceDefinition> |
LexicalReference.getNamespaceSet(ICompilerProject project,
ASScope scope) |
com.google.common.collect.ImmutableSet<INamespaceDefinition> |
ResolvedQualifiersReference.getQualifiers() |
Constructor and Description |
---|
ResolvedQualifiersReference(com.google.common.collect.ImmutableSet<INamespaceDefinition> qualifiers,
String baseName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
CompilerProject.addGlobalUsedNamespacesToNamespaceSet(Set<INamespaceDefinition> nsSet) |
Modifier and Type | Field and Description |
---|---|
static Set<INamespaceDefinition> |
ASScopeBase.allNamespacesSet |
Modifier and Type | Method and Description |
---|---|
Set<INamespaceDefinition> |
ASScope.adjustNamespaceSetForSuper(IDefinition superDef,
Set<INamespaceDefinition> nsSet)
Adjust the namespace set passed in so it's the right set for a super
access.
|
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.
|
Set<INamespaceDefinition> |
NamespaceSetPredicate.getNamespaceSet() |
Set<INamespaceDefinition> |
NoDefinitionScope.getNamespaceSet(ICompilerProject project)
Get the namespace set of the containing scope
|
Set<INamespaceDefinition> |
ASScope.getNamespaceSet(ICompilerProject project)
Computes and returns the namespace set for this scope.
|
Set<INamespaceDefinition> |
ASScope.getNamespaceSetForName(ICompilerProject project,
String name)
Calculate the namespace set to use to resolve name.
|
Set<INamespaceDefinition> |
ASScope.getNamespaceSetForSuper(ICompilerProject project,
IDefinition superDef)
Helper method to get the namespace set to use for a super reference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NamespaceSetPredicate.containsNamespace(INamespaceDefinition d)
Does the underlying namespace set contain the namespace passed in
|
IDefinition |
ASScope.findPropertyQualified(ICompilerProject project,
INamespaceDefinition qual,
String baseName,
DependencyType dt)
The main public entry point for the findprop operation in the compiler
with an explicit qualifier namespace.
|
IDefinition |
ASScope.findPropertyQualified(ICompilerProject project,
INamespaceDefinition qual,
String baseName,
DependencyType dt,
boolean canEscapeWith)
The main public entry point for the findprop operation in the compiler
with an explicit qualifier namespace.
|
IDefinition |
ASScope.findPropertyQualified(ICompilerProject project,
com.google.common.base.Predicate<IDefinition> additional,
INamespaceDefinition qual,
String baseName,
DependencyType dt)
The main public entry point for the findprop operation in the compiler
with an explicit qualifier namespace.
|
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.
|
IDefinition |
ASScope.getQualifiedPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
INamespaceDefinition qualifier,
boolean isSuperRef)
Find a property in an IDefinition, using the namespace passed in as the
qualifier.
|
void |
NamespaceSetPredicate.setExtraNamespace(INamespaceDefinition extra)
Set the extra namespace.
|
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) |
void |
ScopeView.addLocalImportsToNamespaceSet(IWorkspace workspace,
Set<INamespaceDefinition> namespaceSet) |
void |
ASScope.addLocalImportsToNamespaceSet(IWorkspace workspace,
Set<INamespaceDefinition> namespaceSet)
Adds
INamespaceDefinition 's for each import in this scope to the
specified namespace set. |
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
|
Set<INamespaceDefinition> |
ASScope.adjustNamespaceSetForSuper(IDefinition superDef,
Set<INamespaceDefinition> nsSet)
Adjust the namespace set passed in so it's the right set for a super
access.
|
void |
ASProjectScope.findDefinitionByName(Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet) |
void |
ASProjectScope.findDefinitionByName(ICompilationUnit referencingCU,
Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet,
DependencyType dt) |
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. |
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
com.google.common.base.Predicate<IDefinition> additional,
Set<INamespaceDefinition> nsSet,
DependencyType dt,
boolean canEscapeWith) |
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
|
void |
ASScopeBase.getLocalProperty(ICompilerProject project,
Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet)
Adds definitions with the specified base name whose namespaces match the
specified namespace set to the specified collection of definitions.
|
protected void |
ASScopeBase.getLocalProperty(ICompilerProject project,
Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet,
boolean getContingents)
Adds definitions with the specified base name whose namespaces match the
specified namespace set to the specified collection of definitions.
|
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.
|
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.
|
void |
ASProjectScope.getPropertyForScopeChain(ASScope referencingScope,
Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet,
DependencyType dt) |
Constructor and Description |
---|
NamespaceSetPredicate(ICompilerProject project,
Set<INamespaceDefinition> namespaceSet)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static INamespaceDefinition |
SemanticUtils.getNamespaceInClassContext(IDefinition def,
ICompilerProject project)
Resolve a definition's namespace, and if its parent is a class, normalize
that namespace against the parent class' superclass' protected namespace.
|
Modifier and Type | Method and Description |
---|---|
static IDefinition |
SemanticUtils.getPropertyQualified(ASScope scope,
INamespaceDefinition namespace,
String baseName,
ICompilerProject project)
Get a qualified property in a scope, given the namespace and base name to search for.
|
Modifier and Type | Method and Description |
---|---|
static Nsset |
SemanticUtils.convertSetINamespaceToNsset(Set<INamespaceDefinition> namespaceSet)
Convert a set of INamespaceDefinition objects into a Nsset.
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.