blob: c93292cb1ed0d8f18482794823be6ed96f7a3951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import org.aspectj.lang.reflect.*;
public class ReflectBilling {
public static void main(String[] args) {
AjType<Billing> billingType = AjTypeSystem.getAjType(Billing.class);
InterTypeMethodDeclaration[] itdms = billingType.getDeclaredITDMethods();
for(InterTypeMethodDeclaration itdm : itdms) {
System.out.println(itdm);
}
InterTypeFieldDeclaration[] itdfs = billingType.getDeclaredITDFields();
for(InterTypeFieldDeclaration itdf : itdfs) {
System.out.println(itdf);
}
}
}
|