1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com; import java.util.*; public privileged aspect TestAspect { pointcut gettingMember(Test t) : target(t) && get(!public Set<Integer> com.*.*) && !within(TestAspect); Set<Integer> around(Test t) : gettingMember(t) { Set s = proceed(t); return s; } }