Class InstanceCreator


  • public class InstanceCreator
    extends java.lang.Object
    Creates instances for known types, caches constructors of unknown. (Constructors of parsed types are stored in ClassModel).
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceCreator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T createInstance​(java.lang.Class<T> tClass)
      Create an instance of the given class with its default constructor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstanceCreator

        public InstanceCreator()
    • Method Detail

      • createInstance

        public <T> T createInstance​(java.lang.Class<T> tClass)
        Create an instance of the given class with its default constructor.
        Type Parameters:
        T - Type of the class/instance
        Parameters:
        tClass - class to create instance
        Returns:
        crated instance