aboutsummaryrefslogtreecommitdiffstats
path: root/docs/adk15ProgGuideDB/reflection.xml
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-12-19 16:53:15 +0000
committeracolyer <acolyer>2005-12-19 16:53:15 +0000
commit4fe2028e62f2fc77798eab5551f341f6b584dbde (patch)
treefa4f4300ba921b9dfa1da83122b25b7a773f9c4e /docs/adk15ProgGuideDB/reflection.xml
parent3509955887685ee99cf2772426bcf74cd3a6e5cb (diff)
downloadaspectj-4fe2028e62f2fc77798eab5551f341f6b584dbde.tar.gz
aspectj-4fe2028e62f2fc77798eab5551f341f6b584dbde.zip
doc updates from RB_V1_5_0
Diffstat (limited to 'docs/adk15ProgGuideDB/reflection.xml')
-rw-r--r--docs/adk15ProgGuideDB/reflection.xml19
1 files changed, 15 insertions, 4 deletions
diff --git a/docs/adk15ProgGuideDB/reflection.xml b/docs/adk15ProgGuideDB/reflection.xml
index 9afde22c4..3ae05e698 100644
--- a/docs/adk15ProgGuideDB/reflection.xml
+++ b/docs/adk15ProgGuideDB/reflection.xml
@@ -3,14 +3,25 @@
<title>New Reflection Interfaces</title>
<para>
- AspectJ 5 provides support for runtime reflection of aspect types. The class <literal>Aspect</literal> is
- analogous to the Java class <literal>Class</literal> and provides access to the members of an aspect.
+ AspectJ 5 provides a full set of reflection APIs analogous to the
+ <literal>java.lang.reflect</literal> package, but fully aware of the
+ AspectJ type system. See the javadoc for the runtime and tools APIs
+ for the full details. The reflection APIs are only supported when
+ running under Java 5 and for code compiled by the AspectJ 5 compiler
+ at target level 1.5.
</para>
<sect1 id="reflection_api">
- <title>The Aspect Class</title>
+ <title>Using AjTypeSystem</title>
<para>
-
+ The starting point for using the reflection apis is
+ <literal>org.aspectj.lang.reflect.AjTypeSystem</literal> which
+ provides the method <literal>getAjType(Class)</literal> which will
+ return the <literal>AjType</literal> corresponding to a given
+ Java class. The <literal>AjType</literal> interface corresponds to
+ <literal>java.lang.Class</literal> and gives you access to all of the
+ method, field, constructor, and also pointcut, advice, declare
+ statement and inter-type declaration members in the type.
</para>
</sect1>