Lines Matching refs:Write
299 writer.Write("%s", kGeneratedFileFooterComments); in GenerateJavaClass()
300 writer.Write("package %s;\n\n", package_name.c_str()); in GenerateJavaClass()
301 writer.Write("%s", kJavaFileImports); in GenerateJavaClass()
302 writer.Write("public final class %s {\n", class_name.c_str()); in GenerateJavaClass()
304 writer.Write("private %s () {}\n\n", class_name.c_str()); in GenerateJavaClass()
305 writer.Write("%s", kJavaParsersAndFormatters); in GenerateJavaClass()
313 writer.Write("\n"); in GenerateJavaClass()
319 writer.Write("public static enum %s {\n", in GenerateJavaClass()
325 writer.Write("%s(\"%s\")", ToUpper(name).c_str(), name.c_str()); in GenerateJavaClass()
327 writer.Write(",\n"); in GenerateJavaClass()
329 writer.Write(";\n"); in GenerateJavaClass()
332 writer.Write( in GenerateJavaClass()
337 writer.Write("this.propValue = propValue;\n"); in GenerateJavaClass()
339 writer.Write( in GenerateJavaClass()
343 writer.Write("return propValue;\n"); in GenerateJavaClass()
345 writer.Write("}\n"); in GenerateJavaClass()
347 writer.Write("}\n\n"); in GenerateJavaClass()
351 writer.Write("@Deprecated\n"); in GenerateJavaClass()
355 writer.Write("public static %s %s() {\n", prop_type.c_str(), in GenerateJavaClass()
358 writer.Write("public static Optional<%s> %s() {\n", prop_type.c_str(), in GenerateJavaClass()
362 writer.Write("String value = SystemProperties.get(\"%s\");\n", in GenerateJavaClass()
367 writer.Write("if (\"\".equals(value)) {\n"); in GenerateJavaClass()
369 writer.Write( in GenerateJavaClass()
374 writer.Write("value = SystemProperties.get(\"%s\");\n", in GenerateJavaClass()
377 writer.Write("}\n"); in GenerateJavaClass()
379 writer.Write("return %s;\n", GetParsingExpression(prop).c_str()); in GenerateJavaClass()
381 writer.Write("}\n"); in GenerateJavaClass()
384 writer.Write("\n"); in GenerateJavaClass()
386 writer.Write("@Deprecated\n"); in GenerateJavaClass()
388 writer.Write("public static void %s(%s value) {\n", prop_id.c_str(), in GenerateJavaClass()
391 writer.Write("SystemProperties.set(\"%s\", value == null ? \"\" : %s);\n", in GenerateJavaClass()
395 writer.Write("}\n"); in GenerateJavaClass()
400 writer.Write("}\n"); in GenerateJavaClass()