An apparatus for automatically generating an object-oriented language program
which comprises a class definition storing unit, a parsing unit, a generation pattern
description storing unit and a program generating unit. The class definition unit
describes and stores the class definition. The parsing unit obtains structure information
by parsing a class definition input from the class definition unit. The generation
pattern description storing unit stores the generation pattern description for
structuring the information obtained from the class definition. The program generating
unit automatically generates a new object-oriented program from structure information
of the parsing unit and the generation pattern. Additionally, both the structure
information and the information possessed by a class included in a pattern description
in a program to be generated, are verified. As a result, it can be verified whether
or not the generated program includes a definition which conflicts with an existing
program immediately after the generation of the program, without waiting for the
compiling of the generated program.