Class AnnotationTypeLookup


  • public final class AnnotationTypeLookup
    extends java.lang.Object
    Provides the strategy for determining annotation types for given markers.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationTypeLookup()
      Creates a new annotation lookup object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAnnotationType​(java.lang.String markerType, int markerSeverity)
      Computes the annotation type that corresponds to the given marker type and the given marker severity.
      java.lang.String getAnnotationType​(IMarker marker)
      Computes the annotation type that corresponds to the state of the given marker.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationTypeLookup

        public AnnotationTypeLookup()
        Creates a new annotation lookup object.
    • Method Detail

      • getAnnotationType

        public java.lang.String getAnnotationType​(IMarker marker)
        Computes the annotation type that corresponds to the state of the given marker.
        Parameters:
        marker - the marker
        Returns:
        the annotation type or null
      • getAnnotationType

        public java.lang.String getAnnotationType​(java.lang.String markerType,
                                                  int markerSeverity)
        Computes the annotation type that corresponds to the given marker type and the given marker severity.
        Parameters:
        markerType - the marker type
        markerSeverity - the marker severity
        Returns:
        the annotation type or null