home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
javaimport.tcl
< prev
next >
Wrap
Text File
|
1997-01-30
|
2KB
|
75 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)javaimport.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)javaimport.tcl /main/titanic/1 30 Jan 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
require java_msg.tcl
require javaoopl.tcl
require javatarget.tcl
require javagentor.tcl
# End user added include file section
require "importer.tcl"
Class JavaImporter : {Importer} {
constructor
method destructor
method generateOopl
method getOoplFileTypesToGenerateFor
}
constructor JavaImporter {class this} {
set this [Importer::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method JavaImporter::destructor {this} {
# Start destructor user section
# End destructor user section
$this Importer::destructor
}
method JavaImporter::generateOopl {this classes} {
set fileHandler [JavaFileHandler new]
$fileHandler sourceTclFiles
set selectedClasses [List new]
foreach class $classes {
if [$class isExternal] {
continue
}
if {[$class getName] == ""} {
m4_warning $W_CLASS_WITHOUT_NAME
} else {
$selectedClasses append $class
}
}
set javaGenerator [JavaGenerator new]
set generatedSections [$javaGenerator generate $selectedClasses]
$generatedSections foreach class classToSection {
$classToSection foreach type section {
$fileHandler writeSectionToFile $section $class $type
}
}
}
method JavaImporter::getOoplFileTypesToGenerateFor {this} {
return "java"
}
# Do not delete this line -- regeneration end marker