langtools/make/tools/propertiesparser/resources/templates.properties
author mcimadamore
Thu, 08 Jan 2015 14:43:05 +0000
changeset 28334 1633de6070ae
permissions -rw-r--r--
8058542: Devise scheme for better diagnostic creation Summary: Add support for generating (at build-time) an enum-like class containing all javac diagnostics, which allows for safe diagnostic creation. Reviewed-by: jlahoda, jjg, vromero, erikj, jfranck

toplevel.decl=\
    package {0};\n\
    \n\
    {1}\n\
    import com.sun.tools.javac.util.JCDiagnostic.Error;\n\
    import com.sun.tools.javac.util.JCDiagnostic.Warning;\n\
    import com.sun.tools.javac.util.JCDiagnostic.Note;\n\
    import com.sun.tools.javac.util.JCDiagnostic.Fragment;\n\
    \n\
    public class {2} '{'\n\
    {3}\n\
    '}'\n

import.decl=\
    import {0};

nested.decl =\
    public static class {0} '{'\n\
    {1}\n\
    '}'

factory.decl.method=\
    /**\n\
    ' '* {5}\n\
    ' '*/\n\
    {0}public static {1} {2}({3}) '{'\n\
    {4}\n\
    '}'

factory.decl.method.arg=\
    arg{0}

factory.decl.method.body=\
    return new {0}({1}, {2}, {3});

factory.decl.field=\
    /**\n\
    ' '* {4}\n\
    ' '*/\n\
    public static final {0} {1} = new {0}({2}, {3});

wildcards.extends=\
    {0}<? extends {1}>

suppress.warnings=\
  @SuppressWarnings("rawtypes")\n