Package juzu.impl.compiler

Examples of juzu.impl.compiler.Message


      ArrayList<Message> messages = new ArrayList<Message>(errors.size());
      for (LessCompiler.Problem error : errors) {
        String text = error.getMessage() != null ? error.getMessage() : "There is an error in your .less file";
        String errorName = error.getType().name();
        LessSource source = error.getSource();
        Message msg;
        if (source != null) {
          msg = new Message(MetaModelPluginImpl.COMPILATION_ERROR, errorName, source.getName(), error.getLine(), text);
        } else {
          msg = new Message(MetaModelPluginImpl.GENERAL_PROBLEM, errorName, text);
        }
        MetaModelPluginImpl.log.info(msg.toDisplayString());
        messages.add(msg);
      }
      throw new ProcessingException(messages);
    }
  }
View Full Code Here


                sb.append("[").append(index).append("]");
                sb.append(index == error.line ? " -> " : "    ");
                sb.append(line).append("\n");
                index++;
              }
              Message msg = new Message(COMPILATION_ERROR,
                text,
                error.src,
                error.line,
                error.column + 1,
                sb);
              log.info(msg.toDisplayString());
              messages.add(msg);
            }
            throw new ProcessingException(pkgElt, annotationMirror, messages);
          }
        }
View Full Code Here

TOP

Related Classes of juzu.impl.compiler.Message

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.