]> source.dussan.org Git - aspectj.git/commitdiff
Fix for bugzilla bug 71404:
authorehilsdal <ehilsdal>
Mon, 23 Aug 2004 01:33:22 +0000 (01:33 +0000)
committerehilsdal <ehilsdal>
Mon, 23 Aug 2004 01:33:22 +0000 (01:33 +0000)
  Define MethodPattern, FieldPattern, ConstructorPattern terms

docs/progGuideDB/semantics.xml

index a64dd8101aef2268d841b72532f46737ced9dea9..260efa221bb5b8578e4e0eaaef56b6e1b122ff46 100644 (file)
         <listitem>
           Picks out each join point where the currently executing object
           (the object bound to <literal>this</literal>) is an instance of
-          <replaceable>Type</replaceable>, or of the type of
-          <replaceable>Id</replaceable> (which must be bound in the enclosing
+          <replaceable>Type</replaceable>, or of the type of the
+          identifier <replaceable>Id</replaceable> (which must be bound in the enclosing
           advice or pointcut definition).
           Will not match any join points from static contexts.
         </listitem>
         <listitem>
           Picks out each join point where the target object (the object
           on which a call or field operation is applied to) is an instance of
-          <replaceable>Type</replaceable>, or of the type of
+          <replaceable>Type</replaceable>, or of the type of the identifier
           <replaceable>Id</replaceable> (which must be bound in the enclosing
           advice or pointcut definition).
           Will not match any calls, gets, or sets of static members.
       </sect3>
     </sect2>
 
+    <sect2>
+      <title>Pattern Summary</title>
+
+      <para>
+        Here is a summary of the pattern syntax used in AspectJ:
+      </para>
+
+<programlisting>
+MethodPattern = 
+  [ModifiersPattern] TypePattern 
+        [TypePattern . ] IdPattern (TypePattern | ".." , ... ) 
+        [ throws ThrowsPattern ]
+ConstructorPattern = 
+  [ModifiersPattern ] 
+        [TypePattern . ] new (TypePattern | ".." , ...) 
+        [ throws ThrowsPattern ]
+FieldPattern = 
+  [ModifiersPattern] TypePattern [TypePattern . ] IdPattern
+ThrowsPattern = 
+  [ ! ] TypePattern , ...
+TypePattern = 
+    IdPattern [ + ] [ [] ... ]
+    | ! TypePattern
+    | TypePattern <![CDATA[&&]]> TypePattern
+    | TypePattern || TypePattern
+    | ( TypePattern )  
+IdPattern =
+  Sequence of characters, possibly with special * and .. wildcards
+ModifiersPattern =
+  [ ! ] JavaModifier  ...
+</programlisting>
+
+    </sect2>
+
   </sect1>
 
 <!-- ============================== -->