Examples of IMessage


Examples of org.aspectj.bridge.IMessage

      location = new SourceLocation(config.getConfigFile(), 0);
    }

    String message = parser.getOtherMessages(true);
    if (null != message) {
      IMessage m = new Message(message, IMessage.ERROR, null, location);
      handler.handleMessage(m);
    }

    // always force model generation in AJDE
    config.setGenerateModelMode(true);
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    return bcelWeavingSupport;
  }

  @Override
  public void reportCheckerMatch(Checker checker, Shadow shadow) {
    IMessage iMessage = new Message(checker.getMessage(shadow), shadow.toString(), checker.isError() ? IMessage.ERROR
        : IMessage.WARNING, shadow.getSourceLocation(), null, new ISourceLocation[] { checker.getSourceLocation() }, true,
        0, -1, -1);

    getMessageHandler().handleMessage(iMessage);
View Full Code Here

Examples of org.aspectj.bridge.IMessage

          importedFiles = configParser.getImportedFiles();
          badEntries = configParser.getProblemEntries();
    } catch (ConfigParser.ParseException pe) {
//      String filePath = "<unknown>";
//      if (pe.getFile() != null) filePath = pe.getFile().getAbsolutePath();
            IMessage message = new Message(
                pe.getMessage(),
                IMessage.ERROR,
                pe,
                new SourceLocation(pe.getFile(), pe.getLine(), 1));
            Ajde.getDefault().getMessageHandler().handleMessage(message);
View Full Code Here

Examples of org.aspectj.bridge.IMessage

      }
      holder.handleMessage(MessageUtil.info("Compiler took " + (etime - stime) + "ms"));
      // uncomment next line to pause at end (keeps jconsole alive!)
      // try { System.in.read(); } catch (Exception e) {}
    } catch (OutOfMemoryError outOfMemory) {
      IMessage outOfMemoryMessage = new Message(OUT_OF_MEMORY_MSG, null, true);
      holder.handleMessage(outOfMemoryMessage);
      systemExit(holder); // we can't reasonably continue from this point.
    } finally {
      CompilationAndWeavingContext.reset();
      Dump.reset();
View Full Code Here

Examples of org.aspectj.bridge.IMessage

      }
    } catch (AbortException ae) {
      if (ae.isSilent()) {
        quit();
      } else {
        IMessage message = ae.getIMessage();
        Throwable thrown = ae.getThrown();
        if (null == thrown) { // toss AbortException wrapper
          if (null != message) {
            holder.handleMessage(message);
          } else {
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    }
    return true;
  }

  public void error(BcelClassWeaver weaver, String text, ISourceLocation primaryLoc, ISourceLocation[] extraLocs) {
    IMessage msg = new Message(text, primaryLoc, true, extraLocs);
    weaver.getWorld().getMessageHandler().handleMessage(msg);
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

          }
        }
        if (!isOK) {
          // the class does not implement this method, they needed to
          // supply a default impl class
          IMessage msg = new Message("@DeclareParents: No defaultImpl was specified but the type '" + gen.getName()
              + "' does not implement the method '" + stringifyMember(introduced) + "' defined on the interface '"
              + introduced.getDeclaringType() + "'", weaver.getLazyClassGen().getType().getSourceLocation(), true,
              new ISourceLocation[] { munger.getSourceLocation() });
          weaver.getWorld().getMessageHandler().handleMessage(msg);
          return false;
View Full Code Here

Examples of org.aspectj.bridge.IMessage

      }
    }
  }

  private void signalError(String msgid, BcelClassWeaver weaver, UnresolvedType onType) {
    IMessage msg = MessageUtil.error(WeaverMessages.format(msgid, onType.getName()), getSourceLocation());
    weaver.getWorld().getMessageHandler().handleMessage(msg);
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

  // IMessage msg = MessageUtil.warn(msgString, getSourceLocation());
  // weaver.getWorld().getMessageHandler().handleMessage(msg);
  // }

  private void signalError(String msgString, BcelClassWeaver weaver) {
    IMessage msg = MessageUtil.error(msgString, getSourceLocation());
    weaver.getWorld().getMessageHandler().handleMessage(msg);
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

                // check for "just quit -- message printed already"
                if (((AbortException)t).isSilent()) {
                    t = null;
                    break;
                }
                IMessage m = ((AbortException) t).getIMessage();
                if (null == m) {
                    break;
                } else {
                    Throwable tt = m.getThrown();
                    if (null != tt) {
                        t = tt;  
                    } else {
                        break;
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.