|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiagapplet.CodeGen.CodeGenCommon
public class CodeGenCommon
Parses NML C++ header files and .gen files to generate C++ format and update functions, C,Java, and Ada class definitions and information for the Diagnostics and Design tools.
Field Summary | |
---|---|
java.lang.String |
c_prototypes_header_string
|
static boolean |
debug_estimated_size
|
static boolean |
force_keep_admin_state_enum
|
static boolean |
force_keep_status_enum
|
boolean |
have_prototypes_header
|
java.lang.String |
last_java_classname
|
static LoadHierarchyUpdateInterface |
lhui
|
static boolean |
no_enums
|
static boolean |
no_format
|
static boolean |
no_swig
|
boolean |
print_est_size_info
|
java.lang.String |
prototypes_header_string
|
Constructor Summary | |
---|---|
CodeGenCommon()
|
Method Summary | |
---|---|
void |
AddAlphabatizedItem(FastListPanelInterface lst,
java.lang.String item,
boolean select_it)
|
void |
AddAuxBufferModule(java.lang.String buffer_name,
java.lang.String header,
java.lang.String nml_file)
Adds Information related to an auxilliary buffer. |
void |
append_includePath(java.lang.String str)
|
boolean |
CheckForCppClass(java.lang.String cpp_type)
|
boolean |
CheckForCppEnum(java.lang.String cpp_type)
|
boolean |
CheckForCppPosemathClass(java.lang.String cpp_type)
|
boolean |
CheckForJavaClass(java.lang.String java_type)
|
boolean |
CheckForJavaStatic(java.lang.String java_type)
|
void |
ClearAll()
|
java.lang.String |
ConvertCppTypeToJavaType(java.lang.String cpp_type)
|
void |
CreateC_UpdateFunction(StructureTypeInfo type_info)
|
void |
CreateCppConstructor(StructureTypeInfo type_info)
|
void |
CreateCppInitializer(StructureTypeInfo type_info)
|
void |
CreateCppUpdateFunction(StructureTypeInfo type_info)
|
void |
CreateJavaDefinition(StructureTypeInfo type_info)
|
void |
CreateJavaUpdateFunction(StructureTypeInfo type_info)
|
java.lang.String |
createScript(java.lang.String[] args)
|
static void |
DebugPrint(java.lang.String s)
|
static void |
DebugPrint2(java.lang.String s)
|
static void |
ErrorPrint(java.lang.String s)
|
void |
EstimateSize(StructureTypeInfo type_info)
|
java.lang.String |
find_common_root(java.lang.String[] strs)
|
void |
GenerateAdaBody()
|
void |
GenerateAdaSpec()
|
void |
GenerateC_FormatFunction()
|
void |
GenerateC_PrototypesHeader()
|
void |
GenerateC_StartOfFile()
|
void |
GenerateC_UpdateFunction(java.lang.String class_name)
|
void |
GenerateC_UpdateFunctions()
|
void |
GenerateCppConstructor(java.lang.String class_name)
|
void |
GenerateCppConstructors()
|
void |
GenerateCppEnumInfo(java.lang.String[] selected_classes)
|
void |
GenerateCppFormatFunction()
|
void |
GenerateCppInitializer(java.lang.String class_name)
|
void |
GenerateCppPrototypesHeader()
|
void |
GenerateCppStartOfFile()
|
void |
GenerateCppUpdateFunction(java.lang.String class_name)
|
void |
GenerateCppUpdateFunctions()
|
void |
GenerateJavaClass(java.lang.String class_name)
|
void |
GenerateJavaClasses()
|
void |
GenerateJavaMessageDict()
|
void |
GeneratePrintSizesFile()
|
static boolean |
get_add_set_header()
|
java.lang.String |
get_base_name(java.lang.String str)
|
FastListPanelInterface |
get_ClassList()
Get the ClassList property. |
diagapplet.CodeGen.CodeGenTextAreaInterface |
get_codeTextArea()
|
diagapplet.CodeGen.CodeGenTextFieldInterface |
get_configFileTextField()
|
java.lang.String |
get_cppFileName()
|
boolean |
get_debug_on()
|
DiagNMLMsgDictCreatorInterface |
get_diag_dict_creator()
Get the diag_dict_creator property. |
boolean |
get_display_on()
|
int |
get_error_count()
|
java.util.Vector |
get_extraActionsVector()
Returns an extrActionsVector(). |
java.util.Vector |
get_extraTabsVector()
Returns an extrTabsVector(). |
boolean |
get_first_cpp_function()
|
boolean |
get_first_java_class()
|
boolean |
get_force_reload_file()
|
static boolean |
get_generate_all_enum_symbol_lookups()
|
boolean |
get_generate_cpp_constructors_needed()
|
boolean |
get_generate_cpp_format_function_needed()
|
boolean |
get_generate_cpp_update_functions_needed()
|
boolean |
get_generate_java_classes_needed()
|
boolean |
get_generate_java_dictionary_needed()
|
static boolean |
get_generate_symbol_lookups()
|
boolean |
get_generating_code()
|
java.lang.String |
get_includePath()
|
diagapplet.CodeGen.CodeGenTextFieldInterface |
get_includePathField()
|
boolean |
get_inside_diagapplet()
|
boolean |
get_is_loading_hierarchy()
|
java.lang.String |
get_javaFileName()
|
java.lang.String |
get_lastIncludePath()
|
java.lang.String |
get_m_ConfigFile()
|
java.lang.String |
get_m_hierarchyFile()
Get the hierarchyFile property. |
CountButtonInterface |
get_m_hierarchyFileLoadButton()
|
URLLoadInfoPanelInterface |
get_m_loadingPanel()
|
CountListInterface |
get_m_modulesCountList()
|
java.util.Hashtable |
get_m_modulesHashTable()
Returns the modulesHashTable property. |
FastListPanelInterface |
get_m_modulesList()
Get the ModulesList property. |
NMLConnectionCreatorInterface |
get_nml_creator()
Get the nml_creator property. |
java.util.Hashtable |
get_optionsHashTable()
Returns the optionsHashTable property. |
boolean |
get_print_prompt()
|
boolean |
get_reload_hierarchy_needed()
|
boolean |
get_run_needed()
|
boolean |
get_RunIndependantly()
|
boolean |
get_running_script()
|
boolean |
get_running()
|
boolean |
get_script_file_ran()
|
java.lang.String |
get_script()
|
java.util.Hashtable |
get_serversHashtable()
|
FastListPanelInterface |
get_serversList()
|
static boolean |
get_static_debug_on()
|
boolean |
get_update_with_name()
|
java.lang.String |
GetCppVarDef(java.lang.String var,
StructureTypeInfo type_info)
|
java.lang.String |
GetEnumTypeName(java.lang.String vardef)
|
java.lang.String |
GetFormatFunctionNameBase(java.lang.String[] selected_classes)
|
java.lang.String |
GetParameter(java.lang.String strName,
java.lang.String[] args)
Return the value of the matching strName if one exist(), optionally searching command line args given in args. |
void |
GetParameters(java.lang.String[] args)
|
void |
InitializeClassList()
|
boolean |
is_generic(java.lang.String str)
|
boolean |
is_interrupt_loading()
Return the value of the interrupt_loading property. |
boolean |
is_preserve_modules_hashtable()
|
boolean |
IsDouble(java.lang.String str)
|
boolean |
IsInteger(java.lang.String str)
|
boolean |
IsNMLMsg(java.lang.String classname)
|
boolean |
IsNonUpdatebleClass(StructureTypeInfo type_info)
|
boolean |
IsRcsStatMsg(java.lang.String classname)
|
boolean |
IsRcsStatMsgV2(java.lang.String classname)
|
void |
LoadHierarchy()
Load the hierarchy parsing the file set with set_m_hierarchyFile(). |
void |
LoadHierarchyNewThread(java.lang.String HierarchyName,
LoadHierarchyUpdateInterface _lhui)
|
void |
MakeListGeneric(FastListPanelInterface lst)
|
void |
ParseOptionsInfo()
|
static void |
printHelp()
|
void |
PrintInfo(java.lang.String options)
|
void |
PrintInfo(StructureTypeInfo type_info,
java.lang.String var_prefix,
int varnum,
int offset)
|
static java.lang.String |
remove_leading_whitespace_static(java.lang.String str)
|
java.lang.String |
remove_leading_whitespace(java.lang.String str)
|
java.lang.String[] |
RemoveDuplicates(java.lang.String[] list)
|
java.lang.String |
RemoveStartingEndingSpace(java.lang.String str)
|
void |
ResetGenericClasses()
|
void |
RingBell()
|
void |
RunLineOfScript(java.lang.String line_of_script)
|
static void |
RunLineOfScriptStatic(java.lang.String line_of_script)
|
void |
RunScript()
|
void |
RunScript(java.lang.String new_script)
|
void |
SelectByFromFile(java.lang.String filename)
|
void |
SelectFromAllFiles()
|
static void |
set_add_set_header(boolean _add_set_header)
|
void |
set_ClassList(FastListPanelInterface flp)
Set the ClassList property. |
void |
set_codeTextArea(diagapplet.CodeGen.CodeGenTextAreaInterface cta)
|
void |
set_configFileTextField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)
|
void |
set_cppFileName(java.lang.String str)
|
void |
set_debug_on(boolean dbg)
|
void |
set_diag_dict_creator(DiagNMLMsgDictCreatorInterface _diag_dict_creator)
Set a diag_dict_creator property. |
void |
set_display_on(boolean dispon)
|
void |
set_first_cpp_function(boolean b)
|
void |
set_first_java_class(boolean b)
|
void |
set_force_reload_file(boolean b)
|
static void |
set_generate_all_enum_symbol_lookups(boolean _generate_all_enum_symbol_lookups)
|
void |
set_generate_cpp_constructors_needed(boolean b)
|
void |
set_generate_cpp_format_function_needed(boolean b)
|
void |
set_generate_cpp_update_functions_needed(boolean b)
|
void |
set_generate_java_classes_needed(boolean b)
|
void |
set_generate_java_dictionary_needed(boolean b)
|
static void |
set_generate_symbol_lookups(boolean _generate_symbol_lookups)
|
void |
set_generating_code(boolean b)
|
void |
set_includePath(java.lang.String str)
|
void |
set_includePathField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)
|
void |
set_inside_diagapplet(boolean b)
|
void |
set_interrupt_loading(boolean b)
Set the value of the interrupt_loading property. |
void |
set_is_loading_hierarchy(boolean b)
|
void |
set_javaFileName(java.lang.String str)
|
void |
set_lastIncludePath(java.lang.String s)
|
void |
set_m_ConfigFile(java.lang.String str)
|
void |
set_m_hierarchyFile(java.lang.String str)
Set the hierarchyFile property. |
void |
set_m_hierarchyFileLoadButton(CountButtonInterface cbi)
|
void |
set_m_loadingPanel(URLLoadInfoPanelInterface lp)
|
void |
set_m_modulesCountList(CountListInterface lst)
|
void |
set_m_modulesHashTable(java.util.Hashtable ht)
Sets the modulesHashTable property. |
void |
set_m_modulesList(FastListPanelInterface lst)
Set the ModulesList property. |
void |
set_nml_creator(NMLConnectionCreatorInterface _nml_creator)
Set the nml_creator property. |
void |
set_optionsHashTable(java.util.Hashtable ht)
|
void |
set_preserve_modules_hashtable(boolean b)
|
void |
set_print_prompt(boolean pp)
|
void |
set_reload_hierarchy_needed(boolean b)
|
void |
set_run_needed(boolean b)
|
void |
set_RunIndependantly(boolean b)
|
void |
set_running_script(boolean b)
|
void |
set_running(boolean b)
|
void |
set_script_file_ran(boolean b)
|
void |
set_script(java.lang.String scrf)
|
void |
set_serversHashtable(java.util.Hashtable ht)
|
void |
set_serversList(FastListPanelInterface lst)
|
static void |
set_static_debug_on(boolean dbg)
|
void |
set_update_with_name(boolean b)
|
void |
SetFormatFunctionName(java.lang.String[] selected_classes)
|
void |
SetOutputFile(java.lang.String str)
|
static void |
SetOutputFileName(java.lang.String _output_filename)
|
void |
setVisible(boolean visible)
|
boolean |
VarIsUnsigned(java.lang.String vardef)
|
static void |
WarningPrint(java.lang.String s)
|
void |
WriteOutput(java.lang.String str)
|
void |
WriteToFos(java.io.FileOutputStream fos,
java.lang.String str)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean force_keep_status_enum
public static boolean force_keep_admin_state_enum
public static boolean debug_estimated_size
public java.lang.String last_java_classname
public static boolean no_enums
public static boolean no_swig
public static boolean no_format
public java.lang.String c_prototypes_header_string
public boolean have_prototypes_header
public java.lang.String prototypes_header_string
public boolean print_est_size_info
public static LoadHierarchyUpdateInterface lhui
Constructor Detail |
---|
public CodeGenCommon()
Method Detail |
---|
public static void SetOutputFileName(java.lang.String _output_filename)
public java.util.Vector get_extraActionsVector()
CodeGenCommonInterface
public java.util.Vector get_extraTabsVector()
CodeGenCommonInterface
public static boolean get_generate_symbol_lookups()
public static void set_generate_symbol_lookups(boolean _generate_symbol_lookups)
public static void set_generate_all_enum_symbol_lookups(boolean _generate_all_enum_symbol_lookups)
public static boolean get_generate_all_enum_symbol_lookups()
public static void set_add_set_header(boolean _add_set_header)
public static boolean get_add_set_header()
public static void DebugPrint(java.lang.String s)
public static void DebugPrint2(java.lang.String s)
public int get_error_count()
public static void ErrorPrint(java.lang.String s)
public static void WarningPrint(java.lang.String s)
public void setVisible(boolean visible)
public void RingBell()
public java.lang.String GetParameter(java.lang.String strName, java.lang.String[] args)
CodeGenCommonInterface
public void GeneratePrintSizesFile()
public void GetParameters(java.lang.String[] args)
public static void printHelp()
public java.lang.String createScript(java.lang.String[] args)
public boolean CheckForCppEnum(java.lang.String cpp_type)
public boolean CheckForCppClass(java.lang.String cpp_type)
public boolean CheckForCppPosemathClass(java.lang.String cpp_type)
public java.lang.String GetEnumTypeName(java.lang.String vardef)
public boolean VarIsUnsigned(java.lang.String vardef)
public java.lang.String GetCppVarDef(java.lang.String var, StructureTypeInfo type_info)
public java.lang.String ConvertCppTypeToJavaType(java.lang.String cpp_type)
public boolean CheckForJavaStatic(java.lang.String java_type)
public boolean CheckForJavaClass(java.lang.String java_type)
public void CreateJavaDefinition(StructureTypeInfo type_info)
public void CreateJavaUpdateFunction(StructureTypeInfo type_info)
public void CreateC_UpdateFunction(StructureTypeInfo type_info)
public void CreateCppUpdateFunction(StructureTypeInfo type_info)
public void PrintInfo(java.lang.String options)
public void PrintInfo(StructureTypeInfo type_info, java.lang.String var_prefix, int varnum, int offset)
public void CreateCppInitializer(StructureTypeInfo type_info)
public void CreateCppConstructor(StructureTypeInfo type_info)
public void GenerateJavaClass(java.lang.String class_name)
public void GenerateJavaClasses()
public boolean IsNonUpdatebleClass(StructureTypeInfo type_info)
public void GenerateC_UpdateFunction(java.lang.String class_name)
public void GenerateCppUpdateFunction(java.lang.String class_name)
public void WriteOutput(java.lang.String str)
public void GenerateCppInitializer(java.lang.String class_name)
public void GenerateCppConstructor(java.lang.String class_name)
public void GenerateC_UpdateFunctions()
public void GenerateCppUpdateFunctions()
public void GenerateCppConstructors()
public java.lang.String find_common_root(java.lang.String[] strs)
public boolean IsRcsStatMsg(java.lang.String classname)
public boolean IsRcsStatMsgV2(java.lang.String classname)
public boolean IsNMLMsg(java.lang.String classname)
public java.lang.String GetFormatFunctionNameBase(java.lang.String[] selected_classes)
public void GenerateAdaSpec()
public void GenerateAdaBody()
public void GenerateC_PrototypesHeader()
public void GenerateC_StartOfFile()
public void GenerateCppStartOfFile()
public java.lang.String[] RemoveDuplicates(java.lang.String[] list)
public void GenerateCppPrototypesHeader()
public void EstimateSize(StructureTypeInfo type_info)
public void WriteToFos(java.io.FileOutputStream fos, java.lang.String str)
public void GenerateCppEnumInfo(java.lang.String[] selected_classes)
public void SetFormatFunctionName(java.lang.String[] selected_classes)
public void GenerateCppFormatFunction()
public void SetOutputFile(java.lang.String str) throws java.lang.Exception
java.lang.Exception
public void GenerateC_FormatFunction()
public java.lang.String get_base_name(java.lang.String str)
public java.util.Hashtable get_optionsHashTable()
CodeGenCommonInterface
public void set_optionsHashTable(java.util.Hashtable ht)
public java.lang.String RemoveStartingEndingSpace(java.lang.String str)
public boolean IsInteger(java.lang.String str)
public boolean IsDouble(java.lang.String str)
public void GenerateJavaMessageDict()
public void ClearAll()
public void AddAlphabatizedItem(FastListPanelInterface lst, java.lang.String item, boolean select_it)
public boolean is_generic(java.lang.String str)
public void SelectByFromFile(java.lang.String filename)
public void SelectFromAllFiles()
public void InitializeClassList() throws java.lang.Exception
java.lang.Exception
public void ResetGenericClasses()
public void ParseOptionsInfo()
public void AddAuxBufferModule(java.lang.String buffer_name, java.lang.String header, java.lang.String nml_file)
CodeGenCommonInterface
public void LoadHierarchyNewThread(java.lang.String HierarchyName, LoadHierarchyUpdateInterface _lhui)
public void LoadHierarchy() throws java.lang.Exception
CodeGenCommonInterface
java.lang.Exception
public java.lang.String remove_leading_whitespace(java.lang.String str)
public static java.lang.String remove_leading_whitespace_static(java.lang.String str)
public void MakeListGeneric(FastListPanelInterface lst)
public void RunScript(java.lang.String new_script)
public static void RunLineOfScriptStatic(java.lang.String line_of_script) throws java.lang.Exception
java.lang.Exception
public void RunLineOfScript(java.lang.String line_of_script) throws java.lang.Exception
java.lang.Exception
public void RunScript() throws java.lang.Exception
java.lang.Exception
public static boolean get_static_debug_on()
public static void set_static_debug_on(boolean dbg)
public boolean get_debug_on()
public void set_debug_on(boolean dbg)
public java.lang.String get_includePath()
public void append_includePath(java.lang.String str)
public void set_includePath(java.lang.String str)
public boolean get_print_prompt()
public void set_print_prompt(boolean pp)
public boolean get_display_on()
public void set_display_on(boolean dispon)
public java.lang.String get_script()
public void set_script(java.lang.String scrf)
public FastListPanelInterface get_ClassList()
CodeGenCommonInterface
public void set_ClassList(FastListPanelInterface flp)
CodeGenCommonInterface
public java.lang.String get_cppFileName()
public void set_cppFileName(java.lang.String str)
public java.lang.String get_javaFileName()
public void set_javaFileName(java.lang.String str)
public diagapplet.CodeGen.CodeGenTextAreaInterface get_codeTextArea()
public void set_codeTextArea(diagapplet.CodeGen.CodeGenTextAreaInterface cta)
public java.lang.String get_m_hierarchyFile()
CodeGenCommonInterface
public void set_m_hierarchyFile(java.lang.String str)
CodeGenCommonInterface
public java.lang.String get_m_ConfigFile()
public void set_m_ConfigFile(java.lang.String str)
public diagapplet.CodeGen.CodeGenTextFieldInterface get_includePathField()
public void set_includePathField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)
public diagapplet.CodeGen.CodeGenTextFieldInterface get_configFileTextField()
public void set_configFileTextField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)
public boolean get_reload_hierarchy_needed()
public void set_reload_hierarchy_needed(boolean b)
public boolean get_generate_java_classes_needed()
public void set_generate_java_classes_needed(boolean b)
public boolean get_generate_java_dictionary_needed()
public void set_generate_java_dictionary_needed(boolean b)
public boolean get_generate_cpp_update_functions_needed()
public void set_generate_cpp_update_functions_needed(boolean b)
public boolean get_generate_cpp_format_function_needed()
public void set_generate_cpp_format_function_needed(boolean b)
public boolean get_generate_cpp_constructors_needed()
public void set_generate_cpp_constructors_needed(boolean b)
public boolean get_RunIndependantly()
public void set_RunIndependantly(boolean b)
public boolean get_first_java_class()
public void set_first_java_class(boolean b)
public boolean get_first_cpp_function()
public void set_first_cpp_function(boolean b)
public boolean get_running()
public void set_running(boolean b)
public boolean get_run_needed()
public void set_run_needed(boolean b)
public boolean get_is_loading_hierarchy()
public void set_is_loading_hierarchy(boolean b)
public boolean get_generating_code()
public void set_generating_code(boolean b)
public boolean get_running_script()
public void set_running_script(boolean b)
public boolean get_force_reload_file()
public void set_force_reload_file(boolean b)
public java.util.Hashtable get_m_modulesHashTable()
CodeGenCommonInterface
public void set_m_modulesHashTable(java.util.Hashtable ht)
public java.util.Hashtable get_serversHashtable()
public void set_serversHashtable(java.util.Hashtable ht)
public URLLoadInfoPanelInterface get_m_loadingPanel()
public void set_m_loadingPanel(URLLoadInfoPanelInterface lp)
public boolean get_script_file_ran()
public void set_script_file_ran(boolean b)
public boolean get_inside_diagapplet()
public void set_inside_diagapplet(boolean b)
public CountButtonInterface get_m_hierarchyFileLoadButton()
public void set_m_hierarchyFileLoadButton(CountButtonInterface cbi)
public java.lang.String get_lastIncludePath()
public void set_lastIncludePath(java.lang.String s)
public boolean get_update_with_name()
public void set_update_with_name(boolean b)
public boolean is_preserve_modules_hashtable()
public void set_preserve_modules_hashtable(boolean b)
public boolean is_interrupt_loading()
CodeGenCommonInterface
public void set_interrupt_loading(boolean b)
CodeGenCommonInterface
b
- new value of interupt_loading property.public void set_nml_creator(NMLConnectionCreatorInterface _nml_creator)
CodeGenCommonInterface
public NMLConnectionCreatorInterface get_nml_creator()
CodeGenCommonInterface
public void set_diag_dict_creator(DiagNMLMsgDictCreatorInterface _diag_dict_creator)
CodeGenCommonInterface
public DiagNMLMsgDictCreatorInterface get_diag_dict_creator()
CodeGenCommonInterface
public FastListPanelInterface get_m_modulesList()
CodeGenCommonInterface
public void set_m_modulesList(FastListPanelInterface lst)
CodeGenCommonInterface
public CountListInterface get_m_modulesCountList()
public void set_m_modulesCountList(CountListInterface lst)
public FastListPanelInterface get_serversList()
public void set_serversList(FastListPanelInterface lst)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |