You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LintMessage.java 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* *******************************************************************
  2. * Copyright (c) 2002-2006 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * AndyClement extracted as self contained type from Lint type (4-Aug-06)
  12. * ******************************************************************/
  13. package org.aspectj.weaver;
  14. import org.aspectj.bridge.IMessage;
  15. import org.aspectj.bridge.ISourceLocation;
  16. import org.aspectj.bridge.Message;
  17. public class LintMessage extends Message {
  18. // private Lint.Kind lintKind;
  19. private String lintKind;
  20. public LintMessage(String message, IMessage.Kind messageKind, ISourceLocation location, ISourceLocation[] extraLocations,
  21. Lint.Kind lintKind) {
  22. super(message, "", messageKind, location, null, extraLocations);
  23. this.lintKind = lintKind.getName();
  24. }
  25. public LintMessage(String message, String extraDetails, org.aspectj.weaver.Lint.Kind kind2, Kind kind,
  26. ISourceLocation sourceLocation, Throwable object, ISourceLocation[] seeAlsoLocations, boolean declared, int id,
  27. int sourceStart, int sourceEnd) {
  28. super(message, extraDetails, kind, sourceLocation, object, seeAlsoLocations, declared, id, sourceStart, sourceEnd);
  29. this.lintKind = kind2.getName();
  30. }
  31. /**
  32. * @return Returns the Lint kind of this message
  33. */
  34. public String getLintKind() {
  35. return lintKind;
  36. }
  37. }