MCPcopy Create free account
hub / github.com/apache/cloudstack / java_for_user

Function java_for_user

tools/apidoc/gen_toc.py:388–400  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

386
387
388def java_for_user(user):
389 strings = []
390 for category in categories.keys():
391 for command in categories[category]:
392 if command['user'] == user:
393 strings.append(java_for(command, user))
394 func = user_to_func[user]
395 all_strings = ''.join(strings)
396 return '''
397 public void %(func)s() {
398 %(all_strings)s
399 }
400''' % locals()
401
402
403def write_java(out):

Callers 1

write_javaFunction · 0.85

Calls 4

java_forFunction · 0.85
keysMethod · 0.80
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected