Package | Description |
---|---|
org.apache.flex.compiler.codegen.js | |
org.apache.flex.compiler.codegen.js.goog | |
org.apache.flex.compiler.common |
This package contains miscellaneous classes and interfaces
used by other compiler packages.
|
org.apache.flex.compiler.css |
This package contains interfaces and classes representing various CSS concepts.
|
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.metadata |
This package contains interfaces representing metadata annotations on definitions.
|
org.apache.flex.compiler.definitions.references |
This package contains interfaces related to inter-definition references.
|
org.apache.flex.compiler.internal.as.codegen | |
org.apache.flex.compiler.internal.codegen.as | |
org.apache.flex.compiler.internal.codegen.databinding | |
org.apache.flex.compiler.internal.codegen.js | |
org.apache.flex.compiler.internal.codegen.js.flexjs | |
org.apache.flex.compiler.internal.codegen.js.goog | |
org.apache.flex.compiler.internal.codegen.js.utils | |
org.apache.flex.compiler.internal.codegen.js.vf2js | |
org.apache.flex.compiler.internal.css |
This package is the internal extension of the external
org.apache.flex.compiler.css package. |
org.apache.flex.compiler.internal.css.semantics | |
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.metadata | |
org.apache.flex.compiler.internal.definitions.references | |
org.apache.flex.compiler.internal.mxml |
This package is the internal counterpart of the external
org.apache.flex.compiler.mxml package. |
org.apache.flex.compiler.internal.parsing.as | |
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 | |
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.tree.as |
This package is the internal counterpart of the external
org.apache.flex.compiler.tree.as package. |
org.apache.flex.compiler.internal.tree.as.metadata | |
org.apache.flex.compiler.internal.tree.mxml |
This package is the internal counterpart of the external
org.apache.flex.compiler.tree.mxml 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.units.requests |
This package is the internal counterpart of the external
org.apache.flex.compiler.units.requests package. |
org.apache.flex.compiler.mxml |
This package contains classes and interfaces that provide a syntactic
representation of MXML as tags and attributes, without any semantic
understanding of what those tags and attributes mean in MXML.
|
org.apache.flex.compiler.problems |
This package contains classes representing various problems
that can be encountered during compilation.
|
org.apache.flex.compiler.projects |
This package contains interfaces representing projects.
|
org.apache.flex.compiler.scopes |
This package contains interfaces representing scopes.
|
org.apache.flex.compiler.tree.as | |
org.apache.flex.compiler.tree.as.decorators | |
org.apache.flex.compiler.tree.mxml | |
org.apache.flex.compiler.units |
This package contains interfaces representing a compilation unit.
|
org.apache.flex.compiler.units.requests |
This package contains interfaces representing a compilation unit's
requests and results.
|
org.apache.flex.compiler.utils | |
org.apache.flex.swc.dita |
This package contains interfaces representing DITA (Darwin Information
Typing Architecture) information inside a SWC.
|
Modifier and Type | Method and Description |
---|---|
void |
IJSEmitter.emitClosureEnd(IASNode node,
IDefinition nodeDef) |
Modifier and Type | Method and Description |
---|---|
void |
IJSGoogDocEmitter.emitFieldDoc(IVariableNode node,
IDefinition def,
ICompilerProject project) |
void |
IJSGoogDocEmitter.emitVarDoc(IVariableNode node,
IDefinition def,
ICompilerProject project) |
Modifier and Type | Field and Description |
---|---|
HashSet<IDefinition> |
RecursionGuard.visitedDefinitions |
Modifier and Type | Method and Description |
---|---|
boolean |
RecursionGuard.isLoop(IDefinition target) |
Constructor and Description |
---|
RecursionGuard(IDefinition initialDefinition)
Create a guard that is pre-populated with the passed in definition.
|
Modifier and Type | Method and Description |
---|---|
Collection<ICompilationUnit> |
ICSSManager.getDependentCompilationUnitsFromCSS(CSSCompilationSession session,
ICSSDocument cssDocument,
Collection<IDefinition> definitions,
Collection<ICompilerProblem> problems)
Find all the compilation units that the given
definitions depend
on in the given cssDocument . |
Modifier and Type | Interface and Description |
---|---|
interface |
IAccessorDefinition
A definition representing a
function get or
function set declaration. |
interface |
IAppliedVectorDefinition
A definition representing a specialized vector type.
|
interface |
IClassDefinition
A definition representing a
class declaration. |
interface |
IConstantDefinition
A definition representing a
const declaration. |
interface |
IDocumentableDefinition
The base class for definitions which can have ASDoc comments.
|
interface |
IEffectDefinition
Represents effect metadata decorating a class definition,
such as
[Effect(name="rollOverEffect", event="rollOver")] . |
interface |
IEventDefinition
Represents event metadata decorating a class definition,
such as
Event(name="click", type="flash.events.MouseEvent")] . |
interface |
IFunctionDefinition
A definition representing a
function declaration. |
interface |
IGetterDefinition
A definition representing a
function get declaration. |
interface |
IInterfaceDefinition
A definition representing an
interface declaration. |
interface |
IMemberedDefinition |
interface |
IMetadataDefinition
This interface represents definition which are themselves defined by
metadata, such as definitions for events, styles, and effects.
|
interface |
INamespaceDefinition
A definition representing a
namespace declaration. |
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.
|
interface |
IPackageDefinition
A definition representing a package declaration.
|
interface |
IParameterDefinition
A definition representing a parameter declaration.
|
interface |
IScopedDefinition |
interface |
ISetterDefinition
A definition representing a
function set declaration. |
interface |
IStyleDefinition
Represents style metadata decorating a class definition,
such as
Style(name="color", type="uint", format="color", inherit="yes")] . |
interface |
ITypeDefinition
The base interface for class and interface definitions,
including definitions of vector types.
|
interface |
IVariableDefinition
A definition representing a
var declaration. |
Modifier and Type | Method and Description |
---|---|
IDefinition |
IDefinition.getAncestorOfType(Class<? extends IDefinition> ancestorType)
Gets an ancestor definition of this definition.
|
IDefinition |
IMetadataDefinition.getDecoratedDefinition()
Gets the definition that this metadata is decorating.
|
IDefinition |
IDefinition.getParent()
Gets the parent definition of this definition.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
IDefinition.getAncestorOfType(Class<? extends IDefinition> ancestorType)
Gets an ancestor definition of this definition.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
IMetaTag.getDecoratedDefinition()
Gets the definition to which this metadata annotation is attached.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
IResolvedQualifiersReference.resolve(ICompilerProject project)
Resolves this reference to a definition in the given project.
|
IDefinition |
IReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType dependencyType,
boolean canEscapeWith)
Resolves the reference to its
IDefinition in the given project
and scope. |
IDefinition |
IResolvedQualifiersReference.resolve(ICompilerProject project,
ICompilationUnit referencingCompilationUnit,
DependencyType dependencyType)
Resolves this reference to a definition in the given project.
|
Modifier and Type | Method and Description |
---|---|
static IReference |
ReferenceFactory.resolvedReference(IDefinition definition)
Generates an
IReference that always resolves to the
IDefinition passed in. |
Modifier and Type | Method and Description |
---|---|
IDefinition |
Binding.getDefinition() |
IDefinition |
InstructionListNode.resolve(ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
void |
MXMLClassDirectiveProcessor.addBindableVariableTrait(Name varName,
Name varType,
IDefinition def)
Adds an instance trait for a bindable variable,
such as one created by an id attribute.
|
void |
ABCGeneratingReducer.coerce(InstructionList il,
IDefinition toType)
Add instructions to the instructionlist passed in to coerce the top value of the stack
to the given type.
|
InstructionList |
LexicalScope.findProperty(Name name,
IDefinition def,
boolean useStrict)
Get the property for the specified name.
|
InstructionList |
InlineFunctionLexicalScope.findProperty(Name name,
IDefinition def,
boolean useStrict) |
void |
LexicalScope.generateBindableGetter(IDefinition bindableVarDef,
Name var_name,
Name backingPropertyName,
Name var_type,
IMetaInfo[] metaTags) |
void |
LexicalScope.generateBindableSetter(IDefinition bindableVarDef,
Name var_name,
Name backingPropertyName,
Name var_type,
IMetaInfo[] metaTags) |
Binding |
LexicalScope.getBinding(IASNode node,
Name name,
IDefinition def)
Get or create the Binding for a Name and its associated IDefinition.
|
Binding |
LexicalScope.getBinding(IDefinition def)
Get or create the Binding for an IDefinition.
|
InstructionList |
LexicalScope.getPropertyValue(Name name,
IDefinition def)
Get the property value for the specified name.
|
InstructionList |
InlineFunctionLexicalScope.getPropertyValue(Name name,
IDefinition def) |
boolean |
LexicalScope.isLocalDefinition(IDefinition candidate) |
void |
LexicalScope.makeParameter(IDefinition def,
Name param_type)
Declare an explicit parameter.
|
void |
ABCGeneratingReducer.pushNumericConstant(InstructionList result_list,
Number value,
IDefinition type)
Generate code to push a numeric value onto the stack.
|
Constructor and Description |
---|
Binding.SharedBindingInfo(Name n,
IDefinition d) |
Binding(IASNode node,
Name name,
IDefinition def)
Construct a Binding.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ASEmitter.emitModifiers(IDefinition definition) |
Modifier and Type | Method and Description |
---|---|
protected ITypeDefinition |
ASEmitter.findType(Collection<IDefinition> definitions) |
Modifier and Type | Method and Description |
---|---|
void |
StaticPropertyWatcherInfo.init(IDefinition definition,
ICompilerProject project)
After creating a StaticPropertyWatcherInfo, you should immediately call
init.
|
Modifier and Type | Method and Description |
---|---|
void |
JSEmitter.emitClosureEnd(IASNode node,
IDefinition nodeDef) |
Modifier and Type | Method and Description |
---|---|
void |
JSFlexJSEmitter.emitClosureEnd(IASNode node,
IDefinition nodeDef) |
void |
JSFlexJSDocEmitter.emitFieldDoc(IVariableNode node,
IDefinition def,
ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
protected void |
JSGoogEmitter.emitClosureEnd(FunctionNode node,
IDefinition nodeDef) |
void |
JSGoogDocEmitter.emitFieldDoc(IVariableNode node,
IDefinition def,
ICompilerProject project) |
void |
JSGoogDocEmitter.emitVarDoc(IVariableNode node,
IDefinition def,
ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
static boolean |
EmitterUtils.isClassMember(ICompilerProject project,
IDefinition nodeDef,
IClassNode classNode) |
static boolean |
EmitterUtils.isSameClass(IDefinition pdef,
IDefinition thisClass,
ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
static IFunctionDefinition |
EmitterUtils.findFunction(Collection<IDefinition> definitions) |
static NamespaceDefinition.INamepaceDeclarationDirective |
EmitterUtils.findNamespace(Collection<IDefinition> definitions) |
static ITypeDefinition |
EmitterUtils.findType(Collection<IDefinition> definitions) |
static IVariableDefinition |
EmitterUtils.findVariable(Collection<IDefinition> definitions) |
Modifier and Type | Method and Description |
---|---|
void |
JSVF2JSDocEmitter.emitVarDoc(IVariableNode node,
IDefinition def,
ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
Collection<ICompilationUnit> |
CSSManager.getDependentCompilationUnitsFromCSS(CSSCompilationSession session,
ICSSDocument cssDocument,
Collection<IDefinition> definitions,
Collection<ICompilerProblem> problems) |
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableSet<IClassDefinition> |
CSSSemanticAnalyzer.getClassDefinitionSet(Collection<IDefinition> definitions)
Find all the class definitions in the given collection.
|
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 |
AccessorDefinition
AccessorDefinition is the abstract base class for definitions that
represent getters and setters. |
class |
AmbiguousDefinition
IDefinition marker to represent ambiguous results.
|
class |
AppliedVectorDefinition
Definition representing a Vectorized type.
|
class |
ClassDefinition
Each instance of this class represents the definition of an ActionScript
class in the symbol table.
|
class |
ClassDefinitionBase |
class |
ClassTraitsDefinition
Definition to represent the class traits, which holds all the static members,
and whose baseclass is "Class".
|
class |
ConstantDefinition |
class |
DefinitionBase
This class is the abstract base class for all ActionScript definitions in the
symbol table.
|
class |
EffectDefinition
Each instance of this class represent the definition of an MXML effect in the
symbol table.
|
class |
EventDefinition
Each instance of this class represents the definition of an MXML event in the
symbol table.
|
class |
FunctionDefinition
Each instance of this class represents the definition of an ActionScript
function in the symbol table.
|
class |
GetterDefinition |
class |
InterfaceDefinition
Each instance of this class represents the definition of an ActionScript
interface in the symbol table.
|
class |
MemberedDefinition
MemberedDefinition is the abstract base class for definitions that
have members, namely definitions for packages, classes, and interfaces. |
class |
MetadataDefinitionBase
This is the abstract base class for definitions in the symbol table that that
are declared by metadata tags on other definitions.
|
class |
NamespaceDefinition
Instances of this class represent definitions of ActionScript namespaces in
the symbol table.
|
class |
PackageDefinition
This is the abstract base class for definitions in the symbol table that
represent packages.
|
class |
ParameterDefinition
Each instance of this class represents the definition of an ActionScript
function parameter in the symbol table.
|
class |
ScopedDefinitionBase
This is the abstract base class for definitions in the symbol table that have
a associated scope object.
|
class |
SetterDefinition |
class |
StyleDefinition
Instances of this class represent definitions of MXML styles in the symbol
table.
|
class |
SyntheticBindableGetterDefinition
Getter definition created for a Bindable Variable
|
class |
SyntheticBindableSetterDefinition
Setter definition created for a Bindable Variable
|
class |
TypeDefinitionBase
Instances of this class represent definitions of ActionScript types (i.e.,
classes and interfaces) in the symbol table.
|
class |
VariableDefinition
Instances of this class represent definitions of ActionScript variables and
constants in the symbol table.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
DefinitionBase.getAncestorOfType(Class<? extends IDefinition> ancestorType) |
IDefinition |
MetadataDefinitionBase.getDecoratedDefinition() |
IDefinition |
DefinitionBase.getDefinition(int i) |
IDefinition |
DefinitionBase.getParent() |
static IDefinition |
AmbiguousDefinition.resolveAmbiguities(ICompilerProject project,
List<IDefinition> defs)
Helper method to resolve apparently ambiguous results - there are 2 cases
where we what looks like an ambiguity is not - getter/setter pairs, and
legally re-declared local variables If we have a getter and a setter, we
will end up with 2 resulting definitions, but we don't want to report
them as ambiguous if they are a getter & setter for the same property. in
this case, this method arbitrarily returns the first definition passed in
- this should be ok because getter and setter definitions have methods to
access the other one (resolveCorrespondingAccessor), so callers can use
that to get at the one they want.
|
Modifier and Type | Method and Description |
---|---|
List<IDefinition> |
ClassDefinition.getContingentDefinitions() |
Collection<IDefinition> |
ClassDefinition.resolveExtraClasses(ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
static ICompilerProject |
AppliedVectorDefinition.getProjectIfVectorInsantiation(IDefinition def)
Determines if the specified definition is a vector instantiation or a
contained by a vector instantiation.
|
static boolean |
AmbiguousDefinition.isAmbiguous(IDefinition d)
Is the definition passed in an AmbiguousDefinition.
|
static void |
NamespaceDefinition.setContainingDefinitionOfReference(INamespaceReference nsRef,
IDefinition containingDef)
Set the containing definition of an
INamespaceReference , if the INamespaceReference implementation
needs that information. |
Modifier and Type | Method and Description |
---|---|
IDefinition |
DefinitionBase.getAncestorOfType(Class<? extends IDefinition> ancestorType) |
static IDefinition |
AmbiguousDefinition.resolveAmbiguities(ICompilerProject project,
List<IDefinition> defs)
Helper method to resolve apparently ambiguous results - there are 2 cases
where we what looks like an ambiguity is not - getter/setter pairs, and
legally re-declared local variables If we have a getter and a setter, we
will end up with 2 resulting definitions, but we don't want to report
them as ambiguous if they are a getter & setter for the same property. in
this case, this method arbitrarily returns the first definition passed in
- this should be ok because getter and setter definitions have methods to
access the other one (resolveCorrespondingAccessor), so callers can use
that to get at the one they want.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
MetaTag.getDecoratedDefinition() |
Modifier and Type | Method and Description |
---|---|
static MetaTag |
MetaTag.createGotoDefinitionHelp(IDefinition definition,
String file,
String pos,
boolean ctor)
Create a new meta tag for either "__go_to_ctor_definition_help" or
"__go_to_definition_help".
|
Constructor and Description |
---|
MetaTag(IDefinition decoratedDefinition,
String tagName,
IMetaTagAttribute[] attributes) |
ResourceBundleMetaTag(IDefinition decoratedDefinition,
String tagName,
IMetaTagAttribute[] attributes,
String bundleName) |
Modifier and Type | Method and Description |
---|---|
IDefinition |
ResolvedQualifiersReference.resolve(ICompilerProject project) |
IDefinition |
ResolvedReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType dependencyType,
boolean canEscapeWith) |
IDefinition |
ResolvedQualifiersReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType dependencyType,
boolean canEscapeWith) |
IDefinition |
ParameterizedReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType dependencyType,
boolean canEscapeWith) |
IDefinition |
NotATypeReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType dependencyType,
boolean canEscapeWith) |
IDefinition |
LexicalReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType depencencyType,
boolean canEscapeWith) |
IDefinition |
BuiltinReference.resolve(ICompilerProject project,
ASScope scope,
DependencyType dependencyType,
boolean canEscapeWith) |
IDefinition |
ResolvedQualifiersReference.resolve(ICompilerProject project,
ICompilationUnit referencingCompilationUnit,
DependencyType dt) |
Constructor and Description |
---|
ResolvedReference(IDefinition definition)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
StateDefinition
StateDefinition represents a state in MXML 2009 or later. |
class |
StateDefinitionBase
StateDefinitionBase is an abstract base class for
StateDefinition and StateGroupDefinition , which represent
states and state groups in MXML 2009 and later. |
class |
StateGroupDefinition
StateGroupDefinition represents a state group in an MXML class. |
Modifier and Type | Method and Description |
---|---|
List<IDefinition> |
IProjectConfigVariables.getRequiredDefinitions()
Returns the list of definitions required to process config variables
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
FlexProject.doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2) |
IDefinition |
CompilerProject.doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2)
Override this to disambiguate between two ambiguous definitinos
|
IDefinition |
CompilerProject.getUndefinedValue() |
IDefinition |
FlexProject.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 |
CompilerProject.resolveQNameToDefinition(String qName) |
IDefinition |
FlexProject.resolveSpecifier(IClassDefinition classDefinition,
String specifierName)
Searches the specified class, and its superclasses, for the definition of
a specified property, event, or style.
|
IDefinition |
FlexProject.resolveXMLNameToDefinition(XMLName xmlName,
MXMLDialect mxmlDialect) |
Modifier and Type | Method and Description |
---|---|
IDefinition |
FlexProject.doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2) |
IDefinition |
CompilerProject.doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2)
Override this to disambiguate between two ambiguous definitinos
|
boolean |
FlexProject.isValidTypeConversion(IASNode node,
IDefinition actualDefinition,
IDefinition expectedDefinition,
FunctionDefinition func) |
boolean |
CompilerProject.isValidTypeConversion(IASNode node,
IDefinition actualDefinition,
IDefinition expectedDefinition,
FunctionDefinition func) |
Modifier and Type | Class and Description |
---|---|
static class |
ASProjectScope.DefinitionPromise
Represents a promise to provide an
IDefinition in the future. |
Modifier and Type | Method and Description |
---|---|
IDefinition[] |
ASProjectScope.findAllDefinitionsByName(Multiname multiname) |
IDefinition |
ASProjectScope.findDefinitionByName(Multiname multiname,
boolean ignoreAmbiguous) |
IDefinition |
ASProjectScope.findDefinitionByName(String definitionName) |
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
DependencyType dt)
The main public entry point for the findprop operation in the compiler.
|
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
DependencyType dt,
boolean canEscapeWith)
The main public entry point for the findprop operation in the compiler.
|
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
com.google.common.base.Predicate<IDefinition> additional,
DependencyType dt,
boolean canEscapeWith)
An alternate entry point for findprop operations.
|
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
com.google.common.base.Predicate<IDefinition> additional,
Set<INamespaceDefinition> nsSet,
DependencyType dt,
boolean canEscapeWith) |
IDefinition |
ASScopeCache.findPropertyMultiname(IResolvedQualifiersReference ref,
DependencyType dt)
Resolves the specified reference to a definition and adds a dependency to
the dependency graph if needed.
|
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,
IQualifiers qual,
String baseName,
DependencyType dt,
boolean canEscapeWith)
The main public entry point for the findprop operation in the compiler
with an explicit set of qualifier namespaces.
|
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.
|
IDefinition |
ASProjectScope.DefinitionPromise.getActualDefinition() |
IDefinition |
SmallDefinitionSet.getDefinition(int i) |
IDefinition |
LargeDefinitionSet.getDefinition(int i) |
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.
|
IDefinition |
ASScope.getPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
boolean isSuperRef)
Find a property in an IDefinition, using the open namespaces & packages
of this scope.
|
IDefinition |
ASScope.getPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
com.google.common.base.Predicate<IDefinition> additional,
boolean isSuperRef)
Find a property in an IDefinition, using the open namespaces & packages
of this scope, and any additional constraints that are passed in as a
Predicate . |
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.
|
IDefinition |
ASScope.getQualifiedPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
IQualifiers qualifiers,
boolean isSuperRef)
Find a property in an IDefinition, using the qualifiers passed in to provide the namespace set.
|
IDefinition |
ASProjectScope.getUndefinedValueDefinition() |
IDefinition |
MXMLFileScope.resolveTagToDefinition(IMXMLTagData tag)
Resolves an MXML tag such as
|
IDefinition |
MXMLFileScope.resolveXMLNameToDefinition(XMLName tagXMLName,
MXMLDialect mxmlDialect)
Resolves an
XMLName such as |
Modifier and Type | Method and Description |
---|---|
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. |
Collection<IDefinition> |
SmallDefinitionStore8.getAllDefinitions() |
Collection<IDefinition> |
SmallDefinitionStore4.getAllDefinitions() |
Collection<IDefinition> |
SmallDefinitionStore2.getAllDefinitions() |
Collection<IDefinition> |
SmallDefinitionStore1.getAllDefinitions() |
Collection<IDefinition> |
LargeDefinitionStore.getAllDefinitions() |
Collection<IDefinition> |
IDefinitionStore.getAllDefinitions()
Gets all the definitions in this store.
|
Collection<IDefinition> |
EmptyDefinitionStore.getAllDefinitions() |
Collection<IDefinition> |
ASScopeBase.getAllLocalDefinitions() |
Collection<IDefinition> |
ASProjectScope.getAllLocalDefinitions() |
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.
|
Set<IDefinition> |
ASProjectScope.getShadowedDefinitions(IDefinition def)
Gets the set of definitions that have the same qname as specified definition
but are lower priority and thus not visible.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SmallDefinitionStoreBase.add(IDefinition definition) |
boolean |
LargeDefinitionStore.add(IDefinition definition) |
boolean |
IDefinitionStore.add(IDefinition definition)
Adds a definition to this store.
|
boolean |
EmptyDefinitionStore.add(IDefinition definition) |
void |
TypeScope.addDefinition(IDefinition definition)
Adds the specified definition to this scope.
|
void |
SmallDefinitionSet.addDefinition(IDefinition definition) |
void |
ScopeView.addDefinition(IDefinition d) |
void |
NoDefinitionScope.addDefinition(IDefinition d)
Override addDefinition so that all defns get hoisted to the containing
scope Catch scopes will provide an alternate way to add the definition
for the catch parameter
|
void |
LargeDefinitionSet.addDefinition(IDefinition definition) |
void |
IMutableDefinitionSet.addDefinition(IDefinition definition)
Adds a definition to this set.
|
void |
ASScopeBase.addDefinition(IDefinition definition)
Adds the specified definition to this scope.
|
void |
ASProjectScope.addDefinition(IDefinition def) |
static IDefinitionSet |
SmallDefinitionStoreBase.addDefinitionToSet(IDefinitionSet oldDefinitionSet,
IDefinition definition)
Adds a new definition to a definition set, possibly creating a new
definition set in the process (if the old definition set was
null or couldn't hold the new definition). |
protected void |
ASScopeBase.addDefinitionToStore(IDefinition definition)
Helper method called by
ASScopeBase.addDefinition(org.apache.flex.compiler.definitions.IDefinition) (). |
protected void |
ASProjectScope.addDefinitionToStore(IDefinition def) |
protected void |
NoDefinitionScope.addDefinitionToThisScope(IDefinition d)
Add a definition to this scope, instead of hoisting the defn to the
containing scope. used by CatchScopes to add their parameter
|
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.
|
boolean |
NamespaceSetPredicate.apply(IDefinition definition)
Implement the namespace checking.
|
ICompilationUnit |
ASProjectScope.getCompilationUnitForDefinition(IDefinition def)
Gets the
ICompilationUnit that contains the specified
IDefinition . |
Set<INamespaceDefinition> |
ASScope.getNamespaceSetForSuper(ICompilerProject project,
IDefinition superDef)
Helper method to get the namespace set to use for a super reference.
|
IDefinition |
ASScope.getPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
boolean isSuperRef)
Find a property in an IDefinition, using the open namespaces & packages
of this scope.
|
IDefinition |
ASScope.getPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
com.google.common.base.Predicate<IDefinition> additional,
boolean isSuperRef)
Find a property in an IDefinition, using the open namespaces & packages
of this scope, and any additional constraints that are passed in as a
Predicate . |
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.
|
IDefinition |
ASScope.getQualifiedPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
IQualifiers qualifiers,
boolean isSuperRef)
Find a property in an IDefinition, using the qualifiers passed in to provide the namespace set.
|
Set<IDefinition> |
ASProjectScope.getShadowedDefinitions(IDefinition def)
Gets the set of definitions that have the same qname as specified definition
but are lower priority and thus not visible.
|
boolean |
ASProjectScope.isActiveDefinition(IDefinition definition)
Determines if the specified definition is visible in the project scope.
|
boolean |
ASScopeBase.isContingentDefinitionNeeded(ICompilerProject project,
IDefinition definition)
Check whether there is a matching definition in the class hierarchy
already defined in which case the contingent definition is not needed.
|
boolean |
SmallDefinitionStoreBase.remove(IDefinition definition) |
boolean |
LargeDefinitionStore.remove(IDefinition definition) |
boolean |
IDefinitionStore.remove(IDefinition definition)
Removes a definition from this store.
|
boolean |
EmptyDefinitionStore.remove(IDefinition definition) |
void |
SmallDefinitionSet.removeDefinition(IDefinition definition) |
void |
LargeDefinitionSet.removeDefinition(IDefinition definition) |
void |
IMutableDefinitionSet.removeDefinition(IDefinition definition)
Removes a definition from this set.
|
void |
ASScopeBase.removeDefinition(IDefinition definition)
Removes the specified definition from this scope.
|
void |
ASProjectScope.removeDefinition(IDefinition definition) |
static boolean |
SmallDefinitionStoreBase.removeDefinitionFromSet(IDefinitionSet definitionSet,
IDefinition definition)
Removes a definition from a definition set.
|
protected void |
ASScopeBase.removeDefinitionFromStore(IDefinition definition)
Helper method called by
ASScopeBase.removeDefinition(org.apache.flex.compiler.definitions.IDefinition) (). |
void |
SmallDefinitionSet.replaceDefinition(int i,
IDefinition newDefinition) |
void |
LargeDefinitionSet.replaceDefinition(int i,
IDefinition newDefinition) |
void |
IMutableDefinitionSet.replaceDefinition(int i,
IDefinition newDef)
Replaces the
IDefinition at the specified index with a new
definition. |
Modifier and Type | Method and Description |
---|---|
protected static void |
SmallDefinitionStoreBase.addDefinitionsToList(List<IDefinition> list,
IDefinitionSet definitionSet)
If the specified definition set is non-null and contains definitions,
add those definitions to the specified list.
|
void |
ASFileScope.collectExternallyVisibleDefinitions(Collection<IDefinition> defs,
boolean includePrivateDefinitions) |
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) |
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 . |
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
com.google.common.base.Predicate<IDefinition> additional,
DependencyType dt,
boolean canEscapeWith)
An alternate entry point for findprop operations.
|
IDefinition |
ASScope.findProperty(ICompilerProject project,
String baseName,
com.google.common.base.Predicate<IDefinition> additional,
Set<INamespaceDefinition> nsSet,
DependencyType dt,
boolean canEscapeWith) |
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.
|
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 |
ASScopeBase.getLocalProperty(ICompilerProject project,
Collection<IDefinition> defs,
String baseName,
boolean getContingents)
Adds definitions with the specified base name to the specified collection of definitions.
|
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.
|
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.
|
void |
ASProjectScope.getPropertyForScopeChain(ASScope referencingScope,
Collection<IDefinition> defs,
String baseName,
Set<INamespaceDefinition> namespaceSet,
DependencyType dt) |
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.
|
IDefinition |
ASScope.getPropertyFromDef(ICompilerProject project,
IDefinition def,
String name,
com.google.common.base.Predicate<IDefinition> additional,
boolean isSuperRef)
Find a property in an IDefinition, using the open namespaces & packages
of this scope, and any additional constraints that are passed in as a
Predicate . |
Constructor and Description |
---|
SmallDefinitionSet(IDefinition definition0,
IDefinition definition1)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static IDefinition |
SemanticUtils.findMemberByName(IASNode iNode,
String member_name,
boolean match_static_to_static,
ICompilerProject project)
Find a member definition, given its name.
|
static IDefinition |
SemanticUtils.findMemberByName(IASScope scope,
String member_name,
boolean match_static_to_static,
boolean is_static_reference,
ICompilerProject project)
Search a scope and its enclosing scopes for a member whose name is known.
|
static IDefinition |
SemanticUtils.findProperty(ASScope scope,
String member_name,
ICompilerProject project,
boolean lookForStatics)
Find a qualified property by name in a scope.
|
static IDefinition |
SemanticUtils.findPropertyQualified(ASScope scope,
IDefinition member_def,
ICompilerProject project)
Find a qualified property in a scope.
|
IDefinition |
SemanticUtils.findPropertyQualified(IDefinition member_def)
Find a property in a defintion's containing scope.
|
static IDefinition |
SemanticUtils.findPropertyQualified(IDefinition member_def,
ICompilerProject project)
Find a property in a defintion's containing scope.
|
IDefinition |
SemanticUtils.findPropertyQualified(IScopedDefinition enclosing_def,
IDefinition member_def)
Find a property in a (presumably) enclosing defintion's scope.
|
static IDefinition |
SemanticUtils.findPropertyQualified(IScopedDefinition enclosing_def,
IDefinition member_def,
ICompilerProject project)
Find a property in a (presumably) enclosing defintion's scope.
|
IDefinition |
SemanticUtils.getBaseClassDefinition(IASNode iNode)
Fetch the definiton of the given node's
class' base class.
|
static IDefinition |
SemanticUtils.getBaseClassDefinition(IASNode iNode,
ICompilerProject project)
Fetch the definition of the given node's
class' base class.
|
IDefinition |
SemanticUtils.getBuiltinType(IASLanguageConstants.BuiltinType builtin)
Fetch a builtin type.
|
static IDefinition |
SemanticUtils.getBuiltinType(IASLanguageConstants.BuiltinType builtin,
ICompilerProject project)
Fetch a builtin type.
|
IDefinition |
SemanticUtils.getDefinition(IASNode iNode)
Get the definition associated with a IASNode.
|
static IDefinition |
SemanticUtils.getDefinition(IASNode iNode,
ICompilerProject project)
Get the definition associated with a IASNode.
|
IDefinition |
SemanticUtils.getDefinitionOfUnderlyingType(IASNode iNode,
boolean allow_unknown_iNode)
Get the definition of the explicit or implicit type underlying
an iNode's reference(s).
|
static IDefinition |
SemanticUtils.getDefinitionOfUnderlyingType(IASNode iNode,
boolean allow_unknown_iNode,
ICompilerProject project)
Get the definition of the explicit or implicit type underlying
an iNode's reference(s).
|
static IDefinition |
SemanticUtils.getParameterContent(IASNode iNode) |
static IDefinition |
SemanticUtils.getPropertyQualified(ASScope scope,
IDefinition member_def,
ICompilerProject project)
Get a qualified property in a scope - this will look for properties with the same qualified name as member_def
in the scope passed in.
|
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.
|
static IDefinition |
SemanticUtils.getPropertyQualified(IScopedDefinition enclosing_def,
IDefinition member_def,
ICompilerProject project) |
IDefinition |
SemanticUtils.numberType()
Get the current number type.
|
static IDefinition |
SemanticUtils.numberType(ICompilerProject project)
Get the current number type.
|
IDefinition |
SemanticUtils.resolveCorrespondingAccessor(IDefinition def)
Given the definition of a getter or setter, resolve its
corresponding accessor (e.g., the setter for a getter).
|
static IDefinition |
SemanticUtils.resolveCorrespondingAccessor(IDefinition def,
ICompilerProject project)
Given the definition of a getter or setter, resolve its
corresponding accessor (e.g., the setter for a getter).
|
IDefinition |
SemanticUtils.resolveType(IASNode iNode) |
static IDefinition |
SemanticUtils.resolveType(IASNode iNode,
ICompilerProject project) |
static IDefinition |
SemanticUtils.resolveUnaryExprType(IASNode iNode,
ICompilerProject project)
Resolve the type of the underlying expression in a UnaryOperatorNode.
|
Modifier and Type | Method and Description |
---|---|
static List<IDefinition> |
SemanticUtils.findPotentialFunctionConflicts(ICompilerProject project,
IFunctionDefinition funcDef)
Find potential conflict for a FunctionDefinition.
|
static Collection<IDefinition> |
SemanticUtils.getPropertiesByNameForMemberAccess(IASScope scope,
String member_name,
ICompilerProject project)
Fetch the collection of definitions in the given scope or its underlying scopes
that match the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
MethodBodySemanticChecker.addTypeProblem(IASNode typeNode,
IDefinition typeDef,
String typeDesc,
boolean reportAmbiguousReference)
Add the appropriate Problem when a type annotation did not resolve to a Type
|
void |
MethodBodySemanticChecker.checkAssignmentValue(IDefinition leftDefinition,
IASNode rightNode)
Checks that the value (RHS) is appropriate, given the type of the LHS
|
void |
MethodBodySemanticChecker.checkBindableVariableDeclaration(IASNode iNode,
IDefinition d)
Check if we are allowed to declare a bindable variable at this location.
|
void |
MethodBodySemanticChecker.checkImplicitConversion(IASNode iNode,
IDefinition expected_type,
FunctionDefinition func)
Check an implicit conversion.
|
void |
MethodBodySemanticChecker.checkNamespaceOfDefinition(IASNode iNode,
IDefinition def,
ICompilerProject project)
Check that the namespace of the definition is valid
|
static void |
SemanticUtils.checkScopedToDefaultNamespaceProblem(LexicalScope scope,
BaseDefinitionNode node,
IDefinition definition,
String className)
Check for identifiers that don't have a namespace quailifier.
|
static ICompilerProblem |
SemanticUtils.createDeprecationProblem(IDefinition definition,
IASNode site)
Uses the
[Deprecated] metadata of the specified definition
to create one of five different deprecation problems, depending on
the presence of message , since , and
replacement attributes in the metadata. |
static IDefinition |
SemanticUtils.findPropertyQualified(ASScope scope,
IDefinition member_def,
ICompilerProject project)
Find a qualified property in a scope.
|
IDefinition |
SemanticUtils.findPropertyQualified(IDefinition member_def)
Find a property in a defintion's containing scope.
|
static IDefinition |
SemanticUtils.findPropertyQualified(IDefinition member_def,
ICompilerProject project)
Find a property in a defintion's containing scope.
|
IDefinition |
SemanticUtils.findPropertyQualified(IScopedDefinition enclosing_def,
IDefinition member_def)
Find a property in a (presumably) enclosing defintion's scope.
|
static IDefinition |
SemanticUtils.findPropertyQualified(IScopedDefinition enclosing_def,
IDefinition member_def,
ICompilerProject project)
Find a property in a (presumably) enclosing defintion's scope.
|
Name |
SemanticUtils.getAETName(IDefinition def)
Downcast an IDefinition and get an AET name from it.
|
static Name |
SemanticUtils.getAETName(IDefinition def,
ICompilerProject project)
Downcast an IDefinition and get an AET name from it.
|
static SemanticUtils.MultiDefinitionType |
SemanticUtils.getMultiDefinitionType(IDefinition def,
ICompilerProject project)
Is the given multiply defined, or ambiguous?
|
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.
|
static Nsset |
SemanticUtils.getOpenNamespacesForSuper(IASNode iNode,
ICompilerProject project,
IDefinition superDef)
Get the set of open namespaces for the given node,
as appropriate for
super[...] |
static IDefinition |
SemanticUtils.getPropertyQualified(ASScope scope,
IDefinition member_def,
ICompilerProject project)
Get a qualified property in a scope - this will look for properties with the same qualified name as member_def
in the scope passed in.
|
static IDefinition |
SemanticUtils.getPropertyQualified(IScopedDefinition enclosing_def,
IDefinition member_def,
ICompilerProject project) |
static ASScope |
SemanticUtils.getSuperClassScope(ICompilerProject project,
IDefinition member_def)
Get the super class scope for the definition passed in.
|
boolean |
SemanticUtils.isBuiltin(IDefinition def,
IASLanguageConstants.BuiltinType builtin)
Determine if an IDefinition is a specific builtin type.
|
static boolean |
SemanticUtils.isBuiltin(IDefinition def,
IASLanguageConstants.BuiltinType builtin,
ICompilerProject project)
Determine if an IDefinition is a specific builtin type.
|
static boolean |
SemanticUtils.isConstDefinition(IDefinition def)
Is the given definition a constant?
|
static boolean |
SemanticUtils.isGetterSetterPair(IDefinition def0,
IDefinition def1,
ICompilerProject project)
Determines if a pair of definitions consists of a matched getter/setter pair.
|
boolean |
SemanticUtils.isInstanceOf(IDefinition maybe_derived,
IDefinition maybe_base)
Determine if one IDefinition is a subclass of another.
|
static boolean |
SemanticUtils.isInstanceOf(IDefinition maybe_derived,
IDefinition maybe_base,
ICompilerProject project)
Determine if one IDefinition is a subclass of another.
|
static boolean |
SemanticUtils.isMemberDefinition(IDefinition def)
Is this definition a member of a class?
|
static boolean |
SemanticUtils.isMethodBinding(IDefinition def)
Is the definition going to be a method binding in the ABC?
|
boolean |
SemanticUtils.isNumericType(IDefinition def) |
static boolean |
SemanticUtils.isNumericType(IDefinition def,
ICompilerProject project) |
static boolean |
SemanticUtils.isNumericTypeOrBoolean(IDefinition def,
ICompilerProject project) |
static boolean |
SemanticUtils.isPackageDefinition(IDefinition def)
Is this definition a member of a package?
|
boolean |
SemanticUtils.isReadOnlyDefinition(IDefinition def)
Is this definition read-only?
|
static boolean |
SemanticUtils.isRefToClassBeingInited(IdentifierNode id,
IDefinition def)
Helper method to determine if an IdentifierNode refers to the Class it is contained
in from a context where we are generating code that may be run during the cinit method.
|
static boolean |
SemanticUtils.isType(IDefinition d)
Determine if a given IDefinition is the definition of a type (class or interface)
|
static boolean |
SemanticUtils.isValidImplicitOpAssignment(IDefinition lhsType,
IDefinition rhsType,
int opcode,
ICompilerProject project,
boolean compareNormalized)
Check that implicit conversion done as part of an op= style assignment is valid.
|
static boolean |
SemanticUtils.isValidTypeConversion(IDefinition expected,
IDefinition actual,
ICompilerProject project,
boolean normalizeDefinitions)
Check that a implicit conversion from actual to expected type is valid.
|
boolean |
SemanticUtils.isWriteOnlyDefinition(IDefinition def)
Is this definition write-only?
|
IDefinition |
SemanticUtils.resolveCorrespondingAccessor(IDefinition def)
Given the definition of a getter or setter, resolve its
corresponding accessor (e.g., the setter for a getter).
|
static IDefinition |
SemanticUtils.resolveCorrespondingAccessor(IDefinition def,
ICompilerProject project)
Given the definition of a getter or setter, resolve its
corresponding accessor (e.g., the setter for a getter).
|
Modifier and Type | Method and Description |
---|---|
static boolean |
SemanticUtils.isGetterSetterPair(List<IDefinition> defs,
ICompilerProject project)
Determines if a list of definitions consists of a matched getter/setter pair.
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableList<IDefinition> |
Target.getAllExternallyVisibleDefinitions(Collection<ICompilationUnit> compilationUnits)
Find all the externally visible definitions in the given compilation unit
list.
|
Modifier and Type | Field and Description |
---|---|
protected IDefinition |
BaseDefinitionNode.definition |
Modifier and Type | Method and Description |
---|---|
IDefinition[] |
FileNode.getTopLevelDefinitions(boolean includeDefinitionsOutsideOfPackage,
boolean includeNonPublicDefinitions) |
IDefinition |
VectorLiteralNode.resolve(ICompilerProject project) |
IDefinition |
TypedExpressionNode.resolve(ICompilerProject project) |
IDefinition |
NamespaceIdentifierNode.resolve(ICompilerProject project) |
IDefinition |
NamespaceAccessExpressionNode.resolve(ICompilerProject project) |
IDefinition |
MemberAccessExpressionNode.resolve(ICompilerProject project) |
IDefinition |
LanguageIdentifierNode.resolve(ICompilerProject project) |
IDefinition |
IdentifierNode.resolve(ICompilerProject project) |
IDefinition |
ExpressionNodeBase.resolve(ICompilerProject project) |
IDefinition |
FunctionCallNode.resolveCalledExpression(ICompilerProject project) |
IDefinition |
ImportNode.resolveImport(ICompilerProject project) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
IdentifierNode.canEarlyBind(ICompilerProject project,
IDefinition def)
Can this Node be early bound to the Definition it refers to.
|
static boolean |
IdentifierNode.isXMLish(IDefinition def,
ICompilerProject project)
Determine if the definition passed in is one of the XML types (XML or
XMLList) These classes are unrelated, but behave in similar manners.
|
protected void |
ParameterNode.setDefinition(IDefinition definition) |
protected void |
InterfaceNode.setDefinition(IDefinition definition) |
protected void |
FunctionNode.setDefinition(IDefinition def) |
void |
ClassNode.setDefinition(IDefinition def) |
protected void |
BaseDefinitionNode.setDefinition(IDefinition definition) |
void |
IdentifierNode.setReferenceValue(IDefinition definition) |
Modifier and Type | Method and Description |
---|---|
IDefinition |
StyleTagNode.getDefinition() |
IDefinition |
EventTagNode.getDefinition() |
IDefinition |
EffectTagNode.getDefinition() |
Modifier and Type | Method and Description |
---|---|
IMetaTag |
ResourceBundleTagNode.buildMetaTag(IFileSpecification containingFileSpec,
IDefinition definition) |
IMetaTag |
MetaTagNode.buildMetaTag(IFileSpecification containingFileSpec,
IDefinition definition) |
IMetaTag[] |
MetaTagsNode.buildMetaTags(IFileSpecification containingFileSpec,
IDefinition definition) |
Modifier and Type | Method and Description |
---|---|
IDefinition[] |
MXMLFileNode.getTopLevelDefinitions(boolean includeDefinitionsOutsideOfPackage,
boolean includeNonPublicDefinitions) |
Modifier and Type | Method and Description |
---|---|
List<IDefinition> |
InvisibleCompilationUnit.getDefinitionPromises() |
List<IDefinition> |
CompilationUnitBase.getDefinitionPromises() |
Modifier and Type | Field and Description |
---|---|
protected Collection<IDefinition> |
FileScopeRequestResultBase.definitions
All the public definitions in the given file scope.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
FileScopeRequestResultBase.getMainDefinition(String qname) |
IDefinition |
ASFileScopeRequestResult.getMainDefinition(String qname)
The only public definition in the file scope should match the given
QName.
|
IDefinition |
ABCFileScopeRequestResult.getMainDefinition(String qname)
ABC compilation unit can have multiple public definitions in a script, so
it doesn't know which one is the "main" definition.
|
Modifier and Type | Method and Description |
---|---|
Collection<IDefinition> |
FileScopeRequestResultBase.getExternallyVisibleDefinitions()
Get all the public definitions.
|
Constructor and Description |
---|
ASFileScopeRequestResult(Collection<IDefinition> definitionPromises,
IDefinitionPriority definitionPriority,
Collection<ICompilerProblem> problems,
ASFileScope fileScope,
IFileSpecification fileSpec)
ASCompilationUnit only allow one public visible definition. |
Modifier and Type | Interface and Description |
---|---|
interface |
IStateDefinition
Represents the base definition of either a state or a state group defined
with an MXML 4 document
|
interface |
IStateDefinitionBase
Represents the base definition of either a state or a state group defined
with an MXML 4 document
|
interface |
IStateGroupDefinition
Represents a state group defined with an MXML 4 document
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
IXMLNameResolver.resolveXMLNameToDefinition(XMLName tagXMLName,
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. |
Modifier and Type | Method and Description |
---|---|
IDefinition |
ICompilerProject.doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2)
Override this to do try harder to disambiguate between two ambiguous definitions
|
IDefinition |
ICompilerProject.getUndefinedValue()
Helper method to get the only built-in value (undefined).
|
IDefinition |
ICompilerProject.resolveQNameToDefinition(String qName)
Resolve a QName such as
mx.controls.Button to a class definition. |
Modifier and Type | Method and Description |
---|---|
IDefinition |
ICompilerProject.doubleCheckAmbiguousDefinition(ASScope scope,
String name,
IDefinition def1,
IDefinition def2)
Override this to do try harder to disambiguate between two ambiguous definitions
|
boolean |
ICompilerProject.isValidTypeConversion(IASNode node,
IDefinition actualDefinition,
IDefinition expectedDefinition,
FunctionDefinition func) |
Modifier and Type | Method and Description |
---|---|
IDefinition |
IDefinitionSet.getDefinition(int i)
Gets a definition in this set, by index.
|
Modifier and Type | Method and Description |
---|---|
Collection<IDefinition> |
IASScope.getAllLocalDefinitions()
Gets all the definitions in this one scope.
|
Modifier and Type | Method and Description |
---|---|
void |
IFileScope.collectExternallyVisibleDefinitions(Collection<IDefinition> definitions,
boolean includePrivateDefinitions)
Finds the definitions in this scope which could be visible to other
compilation units and adds them to a specified collection of definitions.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ITypedClassNode
Represents a class that represents a typed collection.
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
IDefinitionNode.getDefinition() |
IDefinition[] |
IFileNode.getTopLevelDefinitions(boolean includeDefinitionsOutsideOfPackage,
boolean includeNonPublicDefinitions)
Gets the definitions corresponding to the definitions nodes
within this file node that are children of the file node
or children of a package block node.
|
IDefinition |
IExpressionNode.resolve(ICompilerProject project)
If this expression is statically known to refer to a definition return a
reference to that definition.
|
IDefinition |
IFunctionCallNode.resolveCalledExpression(ICompilerProject project)
Resolves the expression being called to a definition.
|
IDefinition |
IImportNode.resolveImport(ICompilerProject project)
Returns the definition being imported, or
null
if this is a wildcard import or if the import name
cannot be resolved. |
Modifier and Type | Method and Description |
---|---|
IDefinition |
IVariableTypeDecorator.decorateVariableType(IDefinition variable)
Decorates this variables type based on context, and returns back the
actual type of this variable
|
Modifier and Type | Method and Description |
---|---|
IDefinition |
IVariableTypeDecorator.decorateVariableType(IDefinition variable)
Decorates this variables type based on context, and returns back the
actual type of this variable
|
List<IVariableTypeDecorator> |
SymbolDecoratorProvider.getVariableTypeDecorators(IDefinition context)
Returns all the applicable
IVariableTypeDecorator decorators for
a given variable |
boolean |
IVariableTypeDecorator.isApplicable(IDefinition variable)
Determines if this decorator is applicable for the given
IDefinition |
Modifier and Type | Method and Description |
---|---|
IDefinition |
IMXMLSpecifierNode.getDefinition()
Resolves the name of the property, style, or event to its definition.
|
Modifier and Type | Method and Description |
---|---|
List<IDefinition> |
ICompilationUnit.getDefinitionPromises() |
Modifier and Type | Method and Description |
---|---|
IDefinition |
IFileScopeRequestResult.getMainDefinition(String qname) |
Modifier and Type | Method and Description |
---|---|
Collection<IDefinition> |
IFileScopeRequestResult.getExternallyVisibleDefinitions() |
Modifier and Type | Method and Description |
---|---|
static boolean |
DefinitionUtils.isMemberDefinition(IDefinition definition) |
Modifier and Type | Method and Description |
---|---|
IASDocComment |
IDITAList.getComment(IDefinition definition)
Returns an
IASDocComment for the given IDefinition we are looking for. |
IASDocComment |
IDITAEntry.getComment(IDefinition defintion)
Returns the comment for the specific
IDefinition if it exists. |
Copyright © 2016 The Apache Software Foundation. All rights reserved.