Class TypeCompilerFactoryImpl

    • Constructor Detail

      • TypeCompilerFactoryImpl

        public TypeCompilerFactoryImpl()
    • Method Detail

      • getTypeCompiler

        public TypeCompiler getTypeCompiler​(TypeId typeId)
        Get a TypeCompiler corresponding to the given TypeId
        Specified by:
        getTypeCompiler in interface TypeCompilerFactory
        Parameters:
        typeId - The TypeId to get a TypeCompiler for
        Returns:
        The corresponding TypeCompiler
      • getAnInstance

        private static TypeCompiler getAnInstance​(java.lang.String className,
                                                  TypeCompiler anInstance,
                                                  TypeId typeId)
        Check whether the given TypeCompiler has been allocated yet. If so, just return it, otherwise allocate a new instance given its class.