- parameterizeOrAbort
Force parameterization method. Please use this only in "runner" classes such as
unit tests, since th
- tryInstantiate
Instantiate a parameterizable class. When using this, consider using
Parameterization#descend!
- uglyCastIntoSubclass
Cast the (erased) generics onto a class. Note: this function is a hack - notice
that it would allow
- getParameterizer
Get a parameterizer for the given class.
- instantiate
Returns a new instance of the given type for the specified className. If the
Class for className is
- castWithGenericsOrNull
Cast an object at a base class, but return a subclass (for Generics!). The main
goal of this is to a
- getComponentType
Retrieve the component type of a given array. For cloning.
- getParameterizationFactoryMethod
Inspect the class for a static "parameterize" method that satisfies certain
constraints.
- newArray
Clone an array of the given type.
- newInstance
Generic newInstance that tries to clone an object.
- uglyCrossCast
This class performs an ugly cast, from Class toClass, where both F and T
need to extend B. The