Package org.apache.sling.commons.compiler

Examples of org.apache.sling.commons.compiler.CompilerMessage


                }
                final List<CompilerMessage> newMsgs = new ArrayList<CompilerMessage>();
                for(final CompilerMessage msg : msgs) {
                    final String mapped = mapping.get(msg.getFile());

                    newMsgs.add(new CompilerMessage(
                            mapped == null ? msg.getFile() : mapped,
                            msg.getLine(), msg.getColumn(), msg.getMessage()));
                }
                return newMsgs;
            }
View Full Code Here


     */
    public void onError(String msg, String sourceFile, int line, int position) {
        if ( errors == null ) {
            errors = new ArrayList<CompilerMessage>();
        }
        errors.add(new CompilerMessage(sourceFile, line, position, msg));
    }
View Full Code Here

    public void onWarning(String msg, String sourceFile, int line, int position) {
        if ( !this.ignoreWarnings ) {
            if ( warnings == null ) {
                warnings = new ArrayList<CompilerMessage>();
            }
            warnings.add(new CompilerMessage(sourceFile, line, position, msg));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.commons.compiler.CompilerMessage

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.