| |
|
| java.lang.Object xtc.lang.c4.AspectFunctionAnalyzer
AspectFunctionAnalyzer | public class AspectFunctionAnalyzer (Code) | | Performs analysis for the visistor.
author: Marco Yuen |
Method Summary | |
public void | analyze() Start the analysis on the aspect function. | public GNode | getAfter() Extract all the after advice for transformation. | public GNode | getBefore() Get all of the before advice. | public ArrayList | getBody() Extract the function body from a aspect function. | public boolean | hasAfter() Determine if there is after advice.
Ture if there is at least one after advice. | public boolean | hasAround() | public boolean | hasBefore() | public boolean | isAround(String name) Check if the specificed advice name is an around advice.
Parameters: name - The aspect name. |
AspectFunctionAnalyzer | public AspectFunctionAnalyzer(GNode n)(Code) | | The constructor.
Parameters: n - a reference to the function being analyzed. |
analyze | public void analyze()(Code) | | Start the analysis on the aspect function.
|
getAfter | public GNode getAfter()(Code) | | Extract all the after advice for transformation.
The after AspectStatementList |
getBefore | public GNode getBefore()(Code) | | Get all of the before advice.
A reference to all of the before advice of the current function. |
getBody | public ArrayList getBody()(Code) | | Extract the function body from a aspect function.
A list of statements in the funciton body. |
hasAfter | public boolean hasAfter()(Code) | | Determine if there is after advice.
Ture if there is at least one after advice. False, otherwise. |
hasAround | public boolean hasAround()(Code) | | Check if there is around advice in the current function
True if there is an around advice detected. |
hasBefore | public boolean hasBefore()(Code) | | Determine if there is before advice
True, there is before advice. |
isAround | public boolean isAround(String name)(Code) | | Check if the specificed advice name is an around advice.
Parameters: name - The aspect name. True, if the given aspect name is an around advice. |
|
|
|