Package | Description |
---|---|
org.apache.flex.abc |
This package and its subpackages contain a support library
for manipulating ActionScript bytecode (ABC).
|
org.apache.flex.abc.diagnostics |
This package contains classes and interfaces used to report non-fatal
diagnostics from ABC processing.
|
org.apache.flex.abc.print |
This package contains specialized visitors and supporting classes that transform their input into a human readable form.
|
org.apache.flex.abc.semantics |
This package contains representations of the individual components of an ABC.
|
org.apache.flex.abc.visitors |
This package contains the most basic model of ABC, which uses visitors.
|
org.apache.flex.compiler.internal.abc | |
org.apache.flex.compiler.internal.as.codegen | |
org.apache.flex.compiler.internal.codegen.databinding | |
org.apache.flex.compiler.internal.semantics |
Modifier and Type | Method and Description |
---|---|
EntryOrderedStore<MethodInfo> |
PoolingABCVisitor.getMethodInfos()
Get a list of the method infos
|
Modifier and Type | Method and Description |
---|---|
protected MethodBodyInfo |
PoolingABCVisitor.getMethodBodyForMethodInfo(MethodInfo mi)
Get the corresponding MethodBodyInfo for a given MethodInfo
|
IMethodVisitor |
PoolingABCVisitor.visitMethod(MethodInfo minfo) |
IMethodVisitor |
ABCEmitter.visitMethod(MethodInfo minfo) |
Modifier and Type | Field and Description |
---|---|
MethodInfo |
DiagnosticsAggregator.ProblemDescription.methodInfo
MethodInfo of the problem's occurrence, where known and applicable.
|
Modifier and Type | Method and Description |
---|---|
void |
DiagnosticsAggregator.incorrectNumberOfParameterNames(MethodInfo methodInfo) |
void |
AbstractDiagnosticVisitor.incorrectNumberOfParameterNames(MethodInfo methodInfo) |
void |
DiagnosticsAggregator.nativeMethodWithMethodBody(MethodInfo methodInfo,
MethodBodyInfo methodBodyInfo) |
void |
AbstractDiagnosticVisitor.nativeMethodWithMethodBody(MethodInfo methodInfo,
MethodBodyInfo methodBodyInfo) |
void |
DiagnosticsAggregator.scriptInitWithRequiredArguments(ScriptInfo scriptInfo,
MethodInfo methodInfo) |
void |
AbstractDiagnosticVisitor.scriptInitWithRequiredArguments(ScriptInfo scriptInfo,
MethodInfo methodInfo) |
void |
DiagnosticsAggregator.tooManyDefaultParameters(MethodInfo methodInfo) |
void |
AbstractDiagnosticVisitor.tooManyDefaultParameters(MethodInfo methodInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
ABCDumpVisitor.traverseClassInit(MethodInfo init,
ClassInfo classInfo,
Trait classTrait,
ScriptInfo scriptInfo)
Traverse a class init method
|
protected void |
ABCDumpVisitor.traverseInstanceInit(MethodInfo init,
InstanceInfo instanceInfo,
Trait classTrait,
ScriptInfo scriptInfo)
Traverse an instance init method
|
protected void |
ABCDumpVisitor.traverseScriptInit(MethodInfo init,
ScriptInfo scriptInfo,
int scriptId)
Traverse the Script init method
|
Modifier and Type | Field and Description |
---|---|
MethodInfo |
ClassInfo.cInit
The class' static initialization method.
|
MethodInfo |
InstanceInfo.iInit
The class' instance initializer (constructor)
|
Modifier and Type | Method and Description |
---|---|
MethodInfo |
ScriptInfo.getInit()
Get the script's initialization method.
|
MethodInfo |
MethodBodyInfo.getMethodInfo() |
Modifier and Type | Method and Description |
---|---|
void |
ScriptInfo.setInit(MethodInfo i)
Set the script's initialization method.
|
void |
MethodBodyInfo.setMethodInfo(MethodInfo minfo) |
Modifier and Type | Method and Description |
---|---|
void |
IDiagnosticsVisitor.incorrectNumberOfParameterNames(MethodInfo methodInfo)
A
MethodInfo has a different number of parameter names than
parameter types. |
void |
IDiagnosticsVisitor.nativeMethodWithMethodBody(MethodInfo methodInfo,
MethodBodyInfo methodBodyInfo)
A
MethodInfo for a native method also has an associated
MethodBodyInfo . |
void |
IDiagnosticsVisitor.scriptInitWithRequiredArguments(ScriptInfo scriptInfo,
MethodInfo methodInfo)
A
MethodInfo for the init method of a ScriptInfo has
required arguments. |
void |
IDiagnosticsVisitor.tooManyDefaultParameters(MethodInfo methodInfo)
A
MethodInfo has too many default parameters. |
void |
NilScriptVisitor.visitInit(MethodInfo methodInfo) |
void |
IScriptVisitor.visitInit(MethodInfo methodInfo)
Declare the script's init routine.
|
void |
DelegatingScriptVisitor.visitInit(MethodInfo methodInfo) |
IMethodVisitor |
NilABCVisitor.visitMethod(MethodInfo minfo) |
IMethodVisitor |
IABCVisitor.visitMethod(MethodInfo minfo)
Visit a method.
|
IMethodVisitor |
DelegatingABCVisitor.visitMethod(MethodInfo minfo) |
ITraitVisitor |
NilTraitsVisitor.visitMethodTrait(int kind,
Name name,
int dispId,
MethodInfo method) |
ITraitVisitor |
ITraitsVisitor.visitMethodTrait(int kind,
Name name,
int dispID,
MethodInfo method)
Define a method trait.
|
ITraitVisitor |
DelegatingTraitsVisitor.visitMethodTrait(int kind,
Name name,
int dispID,
MethodInfo method) |
Modifier and Type | Method and Description |
---|---|
static void |
FunctionGeneratorHelper.generateFunction(IABCVisitor abcVisitor,
MethodInfo mi,
InstructionList functionBody)
Adds the specified
MethodInfo with the specified
InstructionList as its body to the specified IABCVisitor
After calling the method, the specified MethodInfo and
InstructionList must not be modified. |
IMethodVisitor |
ABCScopeBuilder.visitMethod(MethodInfo minfo) |
ITraitVisitor |
ScopedDefinitionTraitsVisitor.visitMethodTrait(int kind,
Name name,
int disp_id,
MethodInfo method) |
Modifier and Type | Method and Description |
---|---|
static MethodInfo |
MXMLClassDirectiveProcessor.createEventHandlerMethodInfo(ICompilerProject project,
IMXMLEventSpecifierNode eventNode,
String handlerName)
Creates a MethodInfo describing the signature for an autogenerated
MXML event handler method corresponding to an MXMLEventSpecifierNode.
|
MethodInfo |
ICodeGenerator.createMethodInfo(LexicalScope scope,
FunctionNode func,
Name alternate_name)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode.
|
MethodInfo |
ABCGenerator.createMethodInfo(LexicalScope scope,
FunctionNode func,
Name alternate_name)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode.
|
MethodInfo |
ICodeGenerator.createMethodInfoWithDefaultArgumentValues(LexicalScope scope,
FunctionNode func)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode, and adds in the information for any
default argument values.
|
MethodInfo |
ABCGenerator.createMethodInfoWithDefaultArgumentValues(LexicalScope scope,
FunctionNode func)
Creates a MethodInfo specifying the signature of a method
declared by a FunctionNode, and adds in the information for any
default argument values.
|
static MethodInfo |
MXMLClassDirectiveProcessor.createVectorGeneratorMethodInfo(ICompilerProject project,
IMXMLVectorNode vectorNode,
String handlerName)
Creates a MethodInfo describing the signature for an autogenerated
vector generator method.
|
MethodInfo |
ICodeGenerator.generateFunction(FunctionNode func,
LexicalScope enclosing_scope,
InstructionList instance_init_insns,
Name alternateName)
Generate code for a function declaration, and put its initialization code
on the relevant instruction list.
|
MethodInfo |
ABCGenerator.generateFunction(FunctionNode func,
LexicalScope enclosing_scope,
InstructionList instance_init_insns,
Name alternate_name)
Generate code for a function declaration, and put its initialization code
on the relevant instruction list.
|
MethodInfo |
LexicalScope.getMethodInfo() |
MethodInfo |
GenerateFunctionInParallelResult.getMethodInfo()
Gets the
MethodInfo for the function for which code is being
generated. |
Modifier and Type | Method and Description |
---|---|
void |
ICodeGenerator.generateMethodBodyForFunction(MethodInfo mi,
IASNode node,
LexicalScope enclosing_scope,
InstructionList instance_init_insns)
Helper method used by
generateFunction() (and also by
generateEventHandler() in MXMLDocumentDirectiveProcessor). |
void |
ABCGenerator.generateMethodBodyForFunction(MethodInfo mi,
IASNode node,
LexicalScope enclosing_scope,
InstructionList instance_init_insns)
Helper method used by
generateFunction() (and also by
generateEventHandler() in MXMLDocumentDirectiveProcessor). |
void |
ICodeGenerator.generateMXMLDataBindingGetterFunction(MethodInfo mi,
List<IExpressionNode> nodes,
LexicalScope enclosing_scope)
Helper method used by databinding codegen to emit an anonymous function
based on a list of
IExpressionNode 's. |
void |
ABCGenerator.generateMXMLDataBindingGetterFunction(MethodInfo mi,
List<IExpressionNode> nodes,
LexicalScope enclosing_scope)
Helper method used by databinding codegen to emit an anonymous function
based on a list of
IExpressionNode 's. |
void |
ICodeGenerator.generateMXMLDataBindingSetterFunction(MethodInfo mi,
IExpressionNode setterExpression,
LexicalScope enclosing_scope)
Helper method used by mxml databinding codegen to emit an anonymous
function used by an mxml data binding destination function.
|
void |
ABCGenerator.generateMXMLDataBindingSetterFunction(MethodInfo mi,
IExpressionNode setterExpression,
LexicalScope enclosing_scope)
Helper method used by mxml databinding codegen to emit an anonymous
function used by an mxml data binding destination function.
|
void |
LexicalScope.setMethodInfo(MethodInfo methodInfo)
sets this scope's MethodInfo,
|
Modifier and Type | Method and Description |
---|---|
static MethodInfo |
BindingCodeGenUtils.generatePropertyGetterFunction(IABCVisitor emitter,
ICompilerProject project,
ASScope scope)
generate this function: function(propertyName:String):* { return
target[propertyName]; } where target == "this"
|
Modifier and Type | Method and Description |
---|---|
static void |
BindingCodeGenUtils.makePropertyWatcher(boolean makeStaticWatcher,
InstructionList insns,
String propertyName,
List<String> eventNames,
List<BindingInfo> bindingInfo,
MethodInfo propertyGetterFunction,
FlexProject project)
Generates the ABC to instantiate a PropertyWatcher
Can only generate one special case:
single event (Constructor actually takes an array of events. we could easily add that
no property getter function (we use null)
Note that we are passing in references to BindingInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
MethodBodySemanticChecker.checkControlFlow(IASNode iNode,
MethodInfo mi,
MethodBodyInfo mbi)
Perform semantic checks that require flow-aware analysis.
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.