File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
cldk/analysis/java/codeanalyzer Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,16 @@ def _get_codeanalyzer_exec(self) -> List[str]:
186
186
codeanalyzer_jar_file = self ._download_or_update_code_analyzer (codeanalyzer_jar_path )
187
187
codeanalyzer_exec = shlex .split (f"java -jar { codeanalyzer_jar_file } " )
188
188
return codeanalyzer_exec
189
-
189
+
190
+ def init_japplication (self , data : str ) -> JApplication :
191
+ """Return JApplication giving the stringified JSON as input.
192
+ Returns
193
+ -------
194
+ JApplication
195
+ The application view of the Java code with the analysis results.
196
+ """
197
+ return JApplication (** json .loads (data ))
198
+
190
199
def _init_codeanalyzer (self , analysis_level = 1 ) -> JApplication :
191
200
"""Initializes the Codeanalyzer.
192
201
Returns
@@ -1043,4 +1052,4 @@ def get_all_entry_point_classes(self) -> Dict[str, JType]:
1043
1052
symtab = self .get_symbol_table ()
1044
1053
for val in symtab .values ():
1045
1054
class_dict .update ((k , v ) for k , v in val .type_declarations .items () if v .is_entry_point is True )
1046
- return class_dict
1055
+ return class_dict
You can’t perform that action at this time.
0 commit comments