java.lang.Object
io.helidon.metadata.reflection.TypeFactory
Reflection based support to get classes and types.
-
Method Summary
-
Method Details
-
toClass
Create a class from a type name. This is usingClass.forName(String)
to obtain a class instance.- Parameters:
typeName
- type to convert to class- Returns:
- a class representing the type (ignoring generics)
- Throws:
IllegalArgumentException
- in case the class cannot be created
-
toType
Convert a type name to aType
.- Parameters:
typeName
- type name- Returns:
- a Type representing the type name, may be a class, wildcard, or parameterized type
-