Class UnitWarning

  • All Implemented Interfaces:
    java.lang.Comparable<Warning>

    public class UnitWarning
    extends WarningWithLocation
    A warning reported by LiSA on one of the Units under analysis.
    • Constructor Detail

      • UnitWarning

        public UnitWarning​(Unit unit,
                           java.lang.String message)
        Builds the warning.
        Parameters:
        unit - the unit where this warning was reported on
        message - the message of this warning
    • Method Detail

      • getUnit

        public final Unit getUnit()
        Yields the unit where this warning was reported on.
        Returns:
        the unit
      • getTag

        public java.lang.String getTag()
        Description copied from class: Warning
        Yields the tag of this warning.
        Overrides:
        getTag in class Warning
        Returns:
        the tag of this warning