mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-16 14:10:51 +02:00
23 lines
347 B
Plaintext
23 lines
347 B
Plaintext
![]() |
// Simple aspect that tramples all over Simple.java
|
||
|
|
||
|
public aspect AspectDeclareExtends {
|
||
|
|
||
|
pointcut methodRunning(): execution(* *(..));
|
||
|
|
||
|
declare parents: Simple extends InTheWay;
|
||
|
|
||
|
// declare soft:
|
||
|
//
|
||
|
// declare precedence:
|
||
|
//
|
||
|
// declare warning:
|
||
|
//
|
||
|
// declare error:
|
||
|
//
|
||
|
}
|
||
|
|
||
|
|
||
|
interface MarkerInterface {}
|
||
|
|
||
|
class InTheWay {}
|