summaryrefslogtreecommitdiffstats
path: root/tests/java5/reflection/ReflectBilling.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/reflection/ReflectBilling.java')
-rw-r--r--tests/java5/reflection/ReflectBilling.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/java5/reflection/ReflectBilling.java b/tests/java5/reflection/ReflectBilling.java
new file mode 100644
index 000000000..c93292cb1
--- /dev/null
+++ b/tests/java5/reflection/ReflectBilling.java
@@ -0,0 +1,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);
+ }
+ }
+
+
+} \ No newline at end of file