Interface IInstantiator

  • All Known Implementing Classes:
    FlatInstantiator, Instantiator, SpecializedInstantiator

    public interface IInstantiator
    Used for CallBacks to create an Instance. When methods in this package detect, that they have to generate a new instance of a type this CallBack will be used. This mainly applies to the connectThrough-Function.
    • Method Detail

      • createInstance

        int createInstance​(TypeReference type,
                           Object... instantiatorArgs)
        Create an instance of type. The varArgs argument gets passed through from functions like connectThrough (which have varArgs as well) to the instantiatior.
        Parameters:
        type - Type to generate an instance from
        instantiatorArgs - passed through utility functions
        Returns:
        SSA-Number of the instance