forked from javaee/hk2
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FISH-48 Generic types nested signature parser
Signed-off-by: Gaurav Gupta <[email protected]>
- Loading branch information
1 parent
c1b9174
commit 3d6b917
Showing
12 changed files
with
191 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,17 +18,48 @@ | |
import java.util.List; | ||
|
||
/** | ||
* Denote a Generic type that is parameterized over types | ||
* | ||
* @author [email protected] | ||
*/ | ||
public interface ParameterizedType { | ||
|
||
Type getType(); | ||
/** | ||
* Returns the parameter type | ||
* | ||
* @return parameter type | ||
*/ | ||
public Type getType(); | ||
|
||
/** | ||
* Returns the parameter type name | ||
* | ||
* @return parameter type name | ||
*/ | ||
String getTypeName(); | ||
|
||
List<ParameterizedType> getGenericTypes(); | ||
/** | ||
* Returns the formal type name | ||
* | ||
* @return the formal type name | ||
*/ | ||
String getFormalType(); | ||
|
||
/** | ||
* @return the true value for formal type parameters and false value for | ||
* parameterized type with actual type arguments. | ||
*/ | ||
boolean isFormalType(); | ||
|
||
/** | ||
* | ||
* @return true if type is array | ||
*/ | ||
boolean isArray(); | ||
|
||
/** | ||
* | ||
* @return the list of parameterized subtype | ||
*/ | ||
List<ParameterizedType> getParameterizedTypes(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.