Exemple #1
0
 function generate_uml()
 {
     //creating instance of the reader class, passing in the file name path.  example "Java_Test_Files/outer.java
     $reader = new Reader($this->get_passed_in_file_name());
     //$reader = $this->get_reader_object();
     //set var equal to the text file array
     $start_file_array = $reader->get_file_text_array();
     //creating instance of the parser class, passing in the read in file array
     $parser = new Parser($start_file_array);
     //launching the parser controller method
     $parser->parse_controller();
     //start of mapper section
     $mapper = new Mapper($parser->get_parsed_file());
     //launching the mapper controller method, the mapper controller method returns the produced uml table
     //this return statement is used to return the produced table.  Where the table can then be displayed play
     //simple echo statement.
     return $mapper->mapper_controller();
 }