選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

reflection.adoc 848B

12345678910111213141516171819
  1. [[reflection]]
  2. = New Reflection Interfaces
  3. AspectJ 5 provides a full set of reflection APIs analogous to the
  4. `java.lang.reflect` package, but fully aware of the AspectJ type system.
  5. See the javadoc for the runtime and tools APIs for the full details. The
  6. reflection APIs are only supported when running under Java 5 and for
  7. code compiled by the AspectJ 5 compiler at target level 1.5.
  8. [[reflection_api]]
  9. == Using `AjTypeSystem`
  10. The starting point for using the reflection apis is
  11. `org.aspectj.lang.reflect.AjTypeSystem` which provides the method
  12. `getAjType(Class)` which will return the `AjType` corresponding to a
  13. given Java class. The `AjType` interface corresponds to
  14. `java.lang.Class` and gives you access to all of the method, field,
  15. constructor, and also pointcut, advice, declare statement and inter-type
  16. declaration members in the type.