Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assumption no double concretization of abstract pointcuts plus
supporting clauses in the weaverworld
- Loading branch information
Showing
8 changed files
with
152 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> | ||
<classpathentry kind="con" path="org.eclipse.ajdt.core.ASPECTJRT_CONTAINER"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>AJ-LMP-Pointcuts</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.ajdt.core.ajbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>damp.ekeko.plugin.ekekoBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.ajdt.ui.ajnature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>damp.ekeko.plugin.ekekoNature</nature> | ||
</natures> | ||
</projectDescription> |
28 changes: 28 additions & 0 deletions
28
TestCases/AJ-LMP-Pointcuts/src/cl/pleiad/ajlmp/testPointcuts/AbstractAspect.aj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package cl.pleiad.ajlmp.testPointcuts; | ||
|
||
public abstract aspect AbstractAspect { | ||
abstract pointcut abstractpc1(); | ||
|
||
abstract pointcut abstractpc2(); | ||
|
||
pointcut concretepc1() : execution(* BaseClass.*2(..)); | ||
|
||
void around(): abstractpc1(){ | ||
System.out.println("AbstractAspect-Around1-1"); | ||
proceed(); | ||
System.out.println("AbstractAspect-Around1-2"); | ||
} | ||
|
||
void around(): abstractpc2(){ | ||
System.out.println("AbstractAspect-Around2-1"); | ||
proceed(); | ||
System.out.println("AbstractAspect-Around2-2"); | ||
} | ||
|
||
void around(): concretepc1(){ | ||
System.out.println("AbstractAspect-Around3-1"); | ||
proceed(); | ||
System.out.println("AbstractAspect-Around3-2"); | ||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
TestCases/AJ-LMP-Pointcuts/src/cl/pleiad/ajlmp/testPointcuts/BaseClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cl.pleiad.ajlmp.testPointcuts; | ||
|
||
public class BaseClass { | ||
|
||
public static void main(String[] args) { | ||
BaseClass bc = new BaseClass(); | ||
bc.baseMethod1(); | ||
bc.baseMethod2(); | ||
} | ||
|
||
public void baseMethod1(){ | ||
System.out.println("BaseClass-M1"); | ||
} | ||
|
||
public void baseMethod2(){ | ||
System.out.println("BaseClass-M2"); | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
TestCases/AJ-LMP-Pointcuts/src/cl/pleiad/ajlmp/testPointcuts/FirstAspect.aj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cl.pleiad.ajlmp.testPointcuts; | ||
|
||
public abstract aspect FirstAspect extends AbstractAspect { | ||
|
||
pointcut abstractpc1() : execution(* BaseClass.*1(..)); | ||
|
||
pointcut abstractpc2() : execution(* BaseClass.*2(..)); | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
TestCases/AJ-LMP-Pointcuts/src/cl/pleiad/ajlmp/testPointcuts/SecondAspect.aj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package cl.pleiad.ajlmp.testPointcuts; | ||
|
||
public aspect SecondAspect extends FirstAspect { | ||
|
||
pointcut abstractpc1() : execution(* BaseClass.*2(..)); | ||
|
||
} |