import org.aspectj.testing.*; import org.aspectj.lang.*; import org.aspectj.lang.reflect.*; import java.util.*; public class SimpleAround1 { public static void main(String[] args) { new SimpleAround1().go(); Tester.checkEqual(A.ran, "foo:goo:boo:", "advice didn't run"); } void go() { foo("1"); goo("2"); boo("3"); } void foo(String s) { new Integer(2).toString(); } void goo(String s) { } void boo(String s) { } } aspect A { void around(String s): execution(void *.*oo(String)) && args(s){ proceed(s); JoinPoint jp = thisJoinPoint; ran += jp.getSignature().getName()+":"; } static String ran = ""; // When this advice is here no joinpoint is constructed in foo(String) before(): execution(void *.foo(String)) { } before(): execution(void *.goo(String)) {thisJoinPoint.getThis(); } before(): call(* Integer.*(..)) {thisJoinPoint.getThis(); } } 93_gradient-rendering Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fopwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine/standard-testcases/page-breaking_3.xml
blob: 773cca05a80337f523c56d2b3cba4744aced0de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57