Bug 195375 - Allow class Signature to parse type argument bounds
Summary: Allow class Signature to parse type argument bounds
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-04 08:33 EDT by Carsten Pfeiffer CLA
Modified: 2011-03-29 09:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Pfeiffer CLA 2007-07-04 08:33:19 EDT
It would be nice if org.eclipse.jdt.core.Signature was able to parse the bounds out of a type argument.

E.g. when having a method

void foo(List<? extends String> bar) {
}

I'd like to get hold of the "String" from "<? extends String>". Signature.getTypeArguments() extracts "+QString;" already, but it is currently not possible to get hold of the plain "String".
Comment 1 Jerome Lanneluc CLA 2007-07-04 09:32:08 EDT
Would need to introduce Signature#getWildcardBound(String)