|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectataspectj.AtAspectjComponent
ataspectj.AspectUpdater
public class AspectUpdater
Class used to translate the @expr e @block pointcut into AspectJ valid pointcut.
Field Summary | |
---|---|
java.lang.String[] |
_ajToUpdate
The list of aj file to check. |
int |
_mode
The exec mode of the class. |
static java.lang.String |
BLOCKPATTERN
The string patter of the pointcut @block. |
static java.lang.String |
EXPRPATTERN
The string patter of the pointcut @expr. |
static int |
NOMODE
No mode selected |
static int |
RESTORE
The command to exec. |
static java.lang.String |
RESTOREOPT
The -restore option used to restore the original aj source |
static int |
TOATASPECTJ
The command to exec. |
static java.lang.String |
TOATASPECTJOPT
The -ataspectj option used to translate the new poincut |
Fields inherited from class ataspectj.AtAspectjComponent |
---|
barrier, CODEPRINT, DEBUG, VERBOSE |
Constructor Summary | |
---|---|
AspectUpdater(java.lang.String[] args)
The standard constructor of the class. |
Method Summary | |
---|---|
void |
backupAjs()
Method used to backup the original aj files. |
static boolean |
checkAnnotation(java.lang.String a,
java.lang.String b)
Used to check if the wrapperExpressionAnnotation parameters contains the specified annotation name. |
void |
copy(java.io.File src,
java.io.File dst)
It copies the file src to the file dst |
int |
doJob()
Method used to do the job. |
static java.lang.String |
getAnnotationName(java.lang.String s)
Retrieve from a @expr or @block pointcut the annotation name. |
static void |
main(java.lang.String[] args)
Main used to test the class. |
void |
parseArgs(java.lang.String[] args)
Method used to parse the arguments |
void |
restoreAJs()
Method used to restore the original .aj files. |
static int |
start(java.lang.String[] args)
It starts the job depending of the exec mode specified into args. |
void |
updateAJs()
Method used to translate aj from @AspectJ to AspectJ |
int |
updateBlockAnnotation(java.lang.String ajFileName)
It updates the @block pointcut. |
int |
updateExpressionAspect(java.lang.String ajFileName)
It updates the @expr pointcut. |
Methods inherited from class ataspectj.AtAspectjComponent |
---|
done |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXPRPATTERN
public static final java.lang.String BLOCKPATTERN
public static final java.lang.String RESTOREOPT
public static final java.lang.String TOATASPECTJOPT
public static final int TOATASPECTJ
public static final int RESTORE
public static final int NOMODE
public java.lang.String[] _ajToUpdate
public int _mode
Constructor Detail |
---|
public AspectUpdater(java.lang.String[] args)
args
- the parameters of execution.Method Detail |
---|
public int doJob()
public void updateAJs() throws java.lang.Exception
java.lang.Exception
public void restoreAJs() throws java.io.IOException
java.io.IOException
public void backupAjs() throws java.io.IOException
java.io.IOException
public void copy(java.io.File src, java.io.File dst) throws java.io.IOException
src
- the source filedst
- the destination file
java.io.IOException
public int updateExpressionAspect(java.lang.String ajFileName) throws java.io.IOException
ajFileName
- the aj file name to check.
java.io.IOException
public int updateBlockAnnotation(java.lang.String ajFileName) throws java.io.IOException
ajFileName
- the aj file name to check.
java.io.IOException
public static void main(java.lang.String[] args)
args
- the exec mode to use.public static int start(java.lang.String[] args)
args
- the parameters.public static java.lang.String getAnnotationName(java.lang.String s)
s
- the @expr or @block pointcut.public static boolean checkAnnotation(java.lang.String a, java.lang.String b)
a
- the annotation nameb
- the parameter of wrapperExpressionAnnotationpublic void parseArgs(java.lang.String[] args)
args
- the list of arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |