-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code Generation for UML added to code export
- Loading branch information
Engelbert Niehaus
committed
May 8, 2018
1 parent
1ac46f0
commit 1435031
Showing
6 changed files
with
339 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
vDataJSON["uml_default"]={ | ||
"data":{ | ||
"classname": "MyClass", | ||
"superclassname": "", | ||
"comment": "", | ||
"reposinfo": { | ||
"repository": "https://www.github.com/niebert/", | ||
"require_classes": "yes", | ||
"author": "", | ||
"email": "", | ||
"created": "2017/03/05 18:13:28", | ||
"modified": "2017/11/29 13:23:17", | ||
"requirelist": [] | ||
}, | ||
"attributes": [], | ||
"methods": [] | ||
}, | ||
"settings":{ | ||
"extension4code":".js", | ||
"classlist": [ | ||
"", | ||
"Array", | ||
"Boolean", | ||
"Float", | ||
"Function", | ||
"Hash", | ||
"Integer", | ||
"Object", | ||
"RegularExp", | ||
"String", | ||
"App", | ||
"AppAbstract", | ||
"Document", | ||
"LinkParam", | ||
"JSONEditor" | ||
], | ||
"localclasslist": [ | ||
"LoadSaver", | ||
"LinkParam" | ||
], | ||
"remoteclasslist": [ | ||
"JSONEditor" | ||
], | ||
"baseclasslist": [ | ||
"", | ||
"Array", | ||
"Boolean", | ||
"Document", | ||
"Float", | ||
"Function", | ||
"Hash", | ||
"Integer", | ||
"Object", | ||
"RegularExp", | ||
"String" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
vJSCC_DB['ClassList']['TemplateEngine'] = { | ||
"JSCC_type": "CLASS", | ||
"JSCC_init_date": "24.1.2018", | ||
"JSCC_mod_date": "2018/01/24 10:43:21", | ||
"tClassname": "TemplateEngine", | ||
"tSuperClassname": "", | ||
"sClassType": "Default", | ||
"tAuthor": "Engelbert Niehaus", | ||
"tEMail": "niehaus@uni-landau.de", | ||
"tAttributes": "", | ||
"tMethods": "section(pData:Hash):String\nurl(pData:Hash):String\ntable(pData:Hash):String\nmath(pData:Hash):String\nhorizontal_line(pData:Hash):String\nimages(pData:Hash):String\ninline_elements(pData:Hash):String\ntoc(pData:Hash):String\ninit(pTplHash:Hash)", | ||
"sAttribList": "", | ||
"tAttribName": "", | ||
"tAttribType": "", | ||
"tAttribComment": "", | ||
"tAttribDefault": "", | ||
"sAttribTypeList": "", | ||
"tMethodHeader": "init(pTplHash:Hash)", | ||
"tMethodName": "", | ||
"tMethodComment": "what does section_gen do?", | ||
"sMethodList": "init", | ||
"tMethodCode": "", | ||
"tLoopObject": "pTplHash", | ||
"tLoopMethod": ")", | ||
"AttribType": {}, | ||
"AttribAccess": {}, | ||
"AttribDefault": {}, | ||
"AttribComment": {}, | ||
"MethodParameter": { | ||
"section": "pData:Hash", | ||
"url": "pData:Hash", | ||
"table": "pData:Hash", | ||
"math": "pData:Hash", | ||
"horizontal_line": "pData:Hash", | ||
"images": "pData:Hash", | ||
"inline_elements": "pData:Hash", | ||
"toc": "pData:Hash", | ||
"init": "pTplHash:Hash" | ||
}, | ||
"MethodReturn": { | ||
"section": "String", | ||
"url": "String", | ||
"table": "String", | ||
"math": "String", | ||
"horizontal_line": "String", | ||
"images": "String", | ||
"inline_elements": "String", | ||
"toc": "String", | ||
"init": "" | ||
}, | ||
"MethodCode": { | ||
"section": "", | ||
"url": "", | ||
"table": "", | ||
"math": "", | ||
"horizontal_line": "", | ||
"images": "", | ||
"inline_elements": "", | ||
"toc": "", | ||
"init": "// Code for init\nthis.aTplHash = pTplHash;\n\nfor (var vKey in pTplHash) {\n if (pTplHash.hasOwnProperty(vKey)) {\n // with vKey = \"sections\" the replacement can be called vTplEngine.sections(pContextHash)\n this[vKey] = Handlebars.compile(pTplHash[vKey]);\n }\n};\n" | ||
}, | ||
"MethodComment": { | ||
"section": "Comment for section", | ||
"url": "Comment for url", | ||
"table": "Comment for table", | ||
"math": "Comment for math", | ||
"horizontal_line": "Comment for horizontal_line", | ||
"images": "Comment for images", | ||
"inline_elements": "Comment for inline_elements", | ||
"toc": "Comment for toc", | ||
"init": "Init the template engine with a template hash. And create the replace functions of the Class TemplateEngine dynamically.\nOverwrite the defined methods like 'sections(pData)'" | ||
}, | ||
"MethodAccess": { | ||
"section": "public", | ||
"url": "public", | ||
"table": "public", | ||
"math": "public", | ||
"horizontal_line": "public", | ||
"images": "public", | ||
"inline_elements": "public", | ||
"toc": "public", | ||
"init": "public" | ||
}, | ||
"sClassList": "TemplateEngine", | ||
"tMethodAccess": "public", | ||
"JSCC_version": "1" | ||
} |
Oops, something went wrong.