Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 170942 Details for
Bug 315568
improve Javadoc of SearchPattern#createPattern(String, int, int, int)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix
patch.txt (text/plain), 4.14 KB, created by
Markus Keller
on 2010-06-03 08:19:21 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2010-06-03 08:19:21 EDT
Size:
4.14 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/core/search/SearchPattern.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchPattern.java,v >retrieving revision 1.84 >diff -u -r1.84 SearchPattern.java >--- search/org/eclipse/jdt/core/search/SearchPattern.java 5 May 2010 16:09:40 -0000 1.84 >+++ search/org/eclipse/jdt/core/search/SearchPattern.java 3 Jun 2010 12:15:04 -0000 >@@ -1389,68 +1389,64 @@ > * <ul> > * <li>Type patterns have the following syntax: > * <p><b><code>[qualification '.']typeName ['<' typeArguments '>']</code></b></p> >- * <p>Some samples:<code> >+ * <p>Examples: > * <ul> >- * <li>java.lang.Object</li> >- * <li>Runnable</li> >- * <li>List<String></li> >+ * <li><code>java.lang.Object</code></li> >+ * <li><code>Runnable</code></li> >+ * <li><code>List<String></code></li> > * </ul> >- * </code> >- * </p><p> >+ * <p> > * Type arguments can be specified to search for references to parameterized types > * using following syntax:</p><p> > * <b><code>'<' { [ '?' {'extends'|'super'} ] type ( ',' [ '?' {'extends'|'super'} ] type )* | '?' } '>'</code></b> >- * </p><p><i> >+ * </p><div style="font-style:italic;"> > * Note that: > * <ul> > * <li>'*' is not valid inside type arguments definition <></li> > * <li>'?' is treated as a wildcard when it is inside <> (i.e. it must be put on first position of the type argument)</li> > * </ul> >- * </i></p> >+ * </div> >+ * <br> > * </li> > * <li>Method patterns have the following syntax: > * <p><b><code>[declaringType '.'] ['<' typeArguments '>'] methodName ['(' parameterTypes ')'] [returnType]</code></b></p> >- * <p>Type arguments have the same syntax as explained in the type patterns section</p> >- * <p>Some samples:<code> >+ * <p>Type arguments have the same syntax as explained in the type patterns section.</p> >+ * <p>Examples: > * <ul> >- * <li>java.lang.Runnable.run() void</li> >- * <li>main(*)</li> >- * <li><String>toArray(String[])</li> >+ * <li><code>java.lang.Runnable.run() void</code></li> >+ * <li><code>main(*)</code></li> >+ * <li><code><String>toArray(String[])</code></li> > * </ul> >- * </code> >- * </p> >+ * <br> > * </li> > * <li>Constructor patterns have the following syntax: > * <p><b><code>['<' typeArguments '>'] [declaringQualification '.'] typeName ['(' parameterTypes ')']</code></b></p> >- * <p>Type arguments have the same syntax as explained in the type patterns section</p> >- * <p>Some samples:<code> >+ * <p>Type arguments have the same syntax as explained in the type patterns section.</p> >+ * <p><i>Note that the constructor name should not be entered as it is always the same as the type name.</i></p> >+ * <p>Examples: > * <ul> >- * <li>java.lang.Object()</li> >- * <li>Test(*)</li> >- * <li><Exception>Sample(Exception)</li> >+ * <li><code>java.lang.Object()</code></li> >+ * <li><code>Test(*)</code></li> >+ * <li><code><Exception>Sample(Exception)</code></li> > * </ul> >- * </code> >- * </p> >+ * <br> > * </li> > * <li>Field patterns have the following syntax: > * <p><b><code>[declaringType '.'] fieldName [fieldType]</code></b></p> >- * <p>Some samples:<code> >+ * <p>Examples: > * <ul> >- * <li>java.lang.String.serialVersionUID long</li> >- * <li>field*</li> >+ * <li><code>java.lang.String.serialVersionUID long</code></li> >+ * <li><code>field*</code></li> > * </ul> >- * </code> >- * </p> >+ * <br> > * </li> > * <li>Package patterns have the following syntax: > * <p><b><code>packageNameSegment {'.' packageNameSegment}</code></b></p> >- * <p>Some samples:<code> >+ * <p>Examples: > * <ul> >- * <li>java.lang</li> >- * <li>org.e*.jdt.c*e</li> >+ * <li><code>java.lang</code></li> >+ * <li><code>org.e*.jdt.c*e</code></li> > * </ul> >- * </code> >- * </p> > * </li> > * </ul> > * @param searchFor determines the nature of the searched elements
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 315568
: 170942