The
IRawTypeHelper
allows to compute the raw types for a given reference.
Semantically the raw type for a reference is considered to be
- The primary type for a parameterized type, e.g.
List<String>
produces List
- The constraints in case the type is a type paramater, e.g.
CharSequence
is the raw type of
a type parameter T extends CharSequence
- Wildcard references determine the raw type from their upper bound
- Multi-types return all the raw types of all of their components.
- Synonyms return the raw type of the synonym since the primary type is only used to track the origin. That
means, a type
int | Integer
has the raw type Integer
.