Examples of IMessage


Examples of org.aspectj.bridge.IMessage

    this.typePattern = typePattern.resolveBindings(scope, bindings, false, false);
    resolved = true;
    if (typePattern instanceof ExactTypePattern) {
      ExactTypePattern et = (ExactTypePattern) typePattern;
      if (!et.getExactType().resolve(scope.getWorld()).isAnnotation()) {
        IMessage m = MessageUtil.error(WeaverMessages.format(WeaverMessages.REFERENCE_TO_NON_ANNOTATION_TYPE, et
            .getExactType().getName()), getSourceLocation());
        scope.getWorld().getMessageHandler().handleMessage(m);
        resolved = false;
      }
      ResolvedType annotationType = et.getExactType().resolve(scope.getWorld());
View Full Code Here

Examples of org.aspectj.bridge.IMessage

        // this is the output dir
        outputDir = buildConfig.getCompilationResultDestinationManager().getDefaultOutputLocation();
      }
      ucf = weaver.addClassFile(bsf.binSrc, bsf.fromInPathDirectory, outputDir);
    } catch (IOException ex) {
      IMessage msg = new Message("can't read class file " + bsf.binSrc.getPath(), new SourceLocation(bsf.binSrc, 0), false);
      buildManager.handler.handleMessage(msg);
    }
    return ucf;
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    boolean cellHasFocus) {
            String label = "<no message>";
            String detail = null;
            IMessage.Kind kind = IMessage.ERROR;
            if (value instanceof IMessage) {
        IMessage cm = (IMessage) value;
                label = cm.getMessage();
                if (LangUtil.isEmpty(label)) {
                    label = cm.getMessage();
                }
                kind = cm.getKind();
                Throwable thrown = cm.getThrown();
                if (null != thrown) {
                    detail = LangUtil.renderException(thrown);
                }
            } else if (null != value) {
                label = value.toString();
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    return (ret.indexOf('.') == -1) ? ret : null;
  }

  protected void verifyIsAnnotationType(ResolvedType type, IScope scope) {
    if (!type.isAnnotation()) {
      IMessage m = MessageUtil.error(WeaverMessages.format(WeaverMessages.REFERENCE_TO_NON_ANNOTATION_TYPE, type.getName()),
          getSourceLocation());
      scope.getWorld().getMessageHandler().handleMessage(m);
      resolved = false;
    }
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    public void showError(String message) {
      ISourceLocation location = null;
      if (buildConfig.getConfigFile() != null) {
        location = new SourceLocation(buildConfig.getConfigFile(), 0);
      }
      IMessage errorMessage = new Message(CONFIG_MSG + message, IMessage.ERROR, null, location);
      handler.handleMessage(errorMessage);
      // MessageUtil.error(handler, CONFIG_MSG + message);
    }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    protected void showWarning(String message) {
      ISourceLocation location = null;
      if (buildConfig.getConfigFile() != null) {
        location = new SourceLocation(buildConfig.getConfigFile(), 0);
      }
      IMessage errorMessage = new Message(CONFIG_MSG + message, IMessage.WARNING, null, location);
      handler.handleMessage(errorMessage);
      // MessageUtil.warn(handler, message);
    }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    resolved = true;
    formalType = world.resolve(formalType);
    annotationType = world.resolve(annotationType);
    ResolvedType annoType = (ResolvedType) annotationType;
    if (!annoType.isAnnotation()) {
      IMessage m = MessageUtil.error(WeaverMessages.format(WeaverMessages.REFERENCE_TO_NON_ANNOTATION_TYPE, annoType
          .getName()), getSourceLocation());
      world.getMessageHandler().handleMessage(m);
      resolved = false;
    }
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

        kind = IMessage.ERROR;
      } else {
        kind = IMessage.WARNING;
      }
    }
    IMessage msg = null;
    if (isLintMessage) {
      msg = new LintMessage(problem.getMessage(), extraDetails, world.getLint().fromKey(lintkey), kind, sourceLocation, null,
          seeAlsoLocations, declared, problem.getID(), problem.getSourceStart(), problem.getSourceEnd());
    } else {
      msg = new Message(problem.getMessage(), extraDetails, kind, sourceLocation, null, seeAlsoLocations, declared, problem
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    return msg;
  }

  public static IMessage makeErrorMessage(ICompilationUnit unit, String text, Exception ex) {
    ISourceLocation loc = new SourceLocation(new File(new String(unit.getFileName())), 0, 0, 0, "");
    IMessage msg = new Message(text, IMessage.ERROR, ex, loc);
    return msg;
  }
View Full Code Here

Examples of org.aspectj.bridge.IMessage

    return msg;
  }

  public static IMessage makeErrorMessage(String srcFile, String text, Exception ex) {
    ISourceLocation loc = new SourceLocation(new File(srcFile), 0, 0, 0, "");
    IMessage msg = new Message(text, IMessage.ERROR, ex, loc);
    return msg;
  }
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.