aboutsummaryrefslogtreecommitdiffstats
path: root/docs/adk15ProgGuideDB
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-03-10 12:58:40 +0000
committeracolyer <acolyer>2005-03-10 12:58:40 +0000
commit074251e1666235f1eb62e5406821e8d05178ce9a (patch)
treea8d88301aa796a0d954d5fab0fe0d31f5c3da154 /docs/adk15ProgGuideDB
parentfcd5db07a048c9526b90d8b8b52f7c15644ac1c5 (diff)
downloadaspectj-074251e1666235f1eb62e5406821e8d05178ce9a.tar.gz
aspectj-074251e1666235f1eb62e5406821e8d05178ce9a.zip
remove dependency on 1.2 API - runtime libs must work at 1.1 level
Diffstat (limited to 'docs/adk15ProgGuideDB')
-rw-r--r--docs/adk15ProgGuideDB/annotations.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/adk15ProgGuideDB/annotations.xml b/docs/adk15ProgGuideDB/annotations.xml
index d7abfe0af..cad65a650 100644
--- a/docs/adk15ProgGuideDB/annotations.xml
+++ b/docs/adk15ProgGuideDB/annotations.xml
@@ -935,19 +935,19 @@
<para>
Access to annotation information on members at a matched join point is also available
through the <literal>getSignature</literal> method of the <literal>JoinPoint</literal>
- and <literal>JoinPoint.StaticPart</literal> interfaces. The <literal>MemberSignature</literal>
- interface is extended with the additional operation
- <literal>java.lang.reflect.AccessibleObject getAccessibleObject()</literal>. The following fragment
+ and <literal>JoinPoint.StaticPart</literal> interfaces. The <literal>Signature</literal>
+ interfaces are extended with additional operations that provide access to the
+ <literal>java.lang.reflect</literal> <literal>Method, Field</literal> and
+ <literal>Constructor</literal> objects on which annnotations can be queried. The following fragment
illustrates an example use of this interface to access annotation information.
</para>
<programlisting><![CDATA[
Signature sig = thisJoinPointStaticPart.getSignature();
AnnotatedElement declaringTypeAnnotationInfo = sig.getDeclaringType();
- if (sig instanceof MemberSignature) {
- // this must be an initialization, pre-initialization, call, execution, get, or
- // set join point.
- AnnotatedElement memberAnnotationInfo = ((MemberSignature)sig).getAccessibleObject();
+ if (sig instanceof MethodSignature) {
+ // this must be a call or execution join point
+ Method method = ((MethodSignature)sig).getMethod();
}
]]></programlisting>