Package javax.tools.Diagnostic

Examples of javax.tools.Diagnostic.Kind


        List<JCExpression> toList = toList(toArray);
        return getArray(t, toList);
    }

    protected void printMsg(final String msg, final Element e, final boolean warningsOnly) {
        final Kind kind = (warningsOnly) ? Kind.WARNING : Kind.ERROR;
        msgr.printMessage(kind, msg, e);
    }
View Full Code Here


        options = new I18NProcessorOptions(pe);

        Locale expectedLocale = Locale.ROOT;
        String expectedCatalogName = DEFAULT_CATALOG_CLASS_NAME;
        boolean expectedCatalogSuppression = false;
        Kind expectedVerbosity = Kind.MANDATORY_WARNING;
        assertEquals(expectedLocale, options.getLocale());
        assertEquals(expectedCatalogName, options.getCatalogName());
        assertEquals(expectedCatalogSuppression, options.isSuppressCatalog());
        assertEquals(expectedVerbosity, options.getVerbosity());
        args.clear();
View Full Code Here

        options = new I18NProcessorOptions(pe);

        Locale expectedLocale = new Locale("en", "US");
        String expectedCatalogName = "null";
        boolean expectedCatalogSuppression = true;
        Kind expectedVerbosity = Kind.ERROR;
        assertEquals(expectedLocale, options.getLocale());
        assertEquals(expectedCatalogName, options.getCatalogName());
        assertEquals(expectedCatalogSuppression, options.isSuppressCatalog());
        assertEquals(expectedVerbosity, options.getVerbosity());
    }
View Full Code Here

        List<JCExpression> toList = toList(toArray);
        return getArray(t, toList);
    }

    protected void printMsg(final String msg, final Element e, final boolean warningsOnly) {
        final Kind kind = (warningsOnly) ? Kind.WARNING : Kind.ERROR;
        msgr.printMessage(kind, msg, e);
    }
View Full Code Here

            this.listener = listener;
        }

        @Override
        public void report(Diagnostic<? extends JavaFileObject> diagnostic) {
            Kind kind = diagnostic.getKind();
            String message = diagnostic.getMessage(Locale.getDefault());
            long line = diagnostic.getLineNumber();
            long column = diagnostic.getColumnNumber();
            if(column != -1)
                column += 1; // make it 1-based, like line numbers
View Full Code Here

TOP

Related Classes of javax.tools.Diagnostic.Kind

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.