Commit bc99dc10 by sikang

upadte

parent c3188846
......@@ -5,7 +5,7 @@ class ClassBuilder:
__used_names = []
__variables = []
__functions = []
__class_name = ""
__name = ""
def __gen_rand_str(self):
result = ""
while len(result) == 0 or result in self.__used_names:
......@@ -87,7 +87,7 @@ class ClassBuilder:
for i in range(0, random.randint(0, 5)):
log_code += "Log.%s(\"%s\",\"%s\");\n" % (
''.join(random.sample("idew", random.randint(1, 1))),
self.__class_name,
self.__name,
''.join(random.sample("ABCDEFGHIJKLMNOPQRSTUVWXYZ", random.randint(5, 15)))
)
......@@ -116,7 +116,7 @@ class ClassBuilder:
def new_class(self,class_name,pkg_name):
self.__class_name = class_name
self.__name = class_name
self.__generate_variable()
self.__generate_function("tools/garbel/model/function_model.java")
class_content = self.__generate_class("tools/garbel/model/activity_model.java")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment