Class CachedRuleViolation

  • All Implemented Interfaces:
    RuleViolation

    @Deprecated
    @InternalApi
    public final class CachedRuleViolation
    extends java.lang.Object
    implements RuleViolation
    Deprecated.
    This is internal API, will be hidden with 7.0.0
    A RuleViolation implementation that is immutable, and therefore cache friendly
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int getBeginColumn()
      Deprecated.
      Get the column number of the begin line in the source file in which this violation was identified.
      int getBeginLine()
      Deprecated.
      Get the begin line number in the source file in which this violation was identified.
      java.lang.String getClassName()
      Deprecated.
      Get the name of the Class in which this violation was identified.
      java.lang.String getDescription()
      Deprecated.
      Get the description of this violation.
      int getEndColumn()
      Deprecated.
      Get the column number of the end line in the source file in which this violation was identified.
      int getEndLine()
      Deprecated.
      Get the end line number in the source file in which this violation was identified.
      java.lang.String getFilename()
      Deprecated.
      Get the source file name in which this violation was identified.
      java.lang.String getMethodName()
      Deprecated.
      Get the method name in which this violation was identified.
      java.lang.String getPackageName()
      Deprecated.
      Get the package name of the Class in which this violation was identified.
      Rule getRule()
      Deprecated.
      Get the Rule which identified this violation.
      java.lang.String getVariableName()
      Deprecated.
      Get the variable name on which this violation was identified.
      boolean isSuppressed()
      Deprecated.
      Indicates whether this violation has been suppressed.
      • Methods inherited from class java.lang.Object

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

      • getRule

        public Rule getRule()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the Rule which identified this violation.
        Specified by:
        getRule in interface RuleViolation
        Returns:
        The identifying Rule.
      • getDescription

        public java.lang.String getDescription()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the description of this violation.
        Specified by:
        getDescription in interface RuleViolation
        Returns:
        The description.
      • isSuppressed

        public boolean isSuppressed()
        Deprecated.
        Description copied from interface: RuleViolation
        Indicates whether this violation has been suppressed.
        Specified by:
        isSuppressed in interface RuleViolation
        Returns:
        true if this violation is suppressed, false otherwise.
      • getFilename

        public java.lang.String getFilename()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the source file name in which this violation was identified.
        Specified by:
        getFilename in interface RuleViolation
        Returns:
        The source file name.
      • getBeginLine

        public int getBeginLine()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the begin line number in the source file in which this violation was identified.
        Specified by:
        getBeginLine in interface RuleViolation
        Returns:
        Begin line number.
      • getBeginColumn

        public int getBeginColumn()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the column number of the begin line in the source file in which this violation was identified.
        Specified by:
        getBeginColumn in interface RuleViolation
        Returns:
        Begin column number.
      • getEndLine

        public int getEndLine()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the end line number in the source file in which this violation was identified.
        Specified by:
        getEndLine in interface RuleViolation
        Returns:
        End line number.
      • getEndColumn

        public int getEndColumn()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the column number of the end line in the source file in which this violation was identified.
        Specified by:
        getEndColumn in interface RuleViolation
        Returns:
        End column number.
      • getPackageName

        public java.lang.String getPackageName()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the package name of the Class in which this violation was identified.
        Specified by:
        getPackageName in interface RuleViolation
        Returns:
        The package name.
      • getClassName

        public java.lang.String getClassName()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the name of the Class in which this violation was identified.
        Specified by:
        getClassName in interface RuleViolation
        Returns:
        The Class name.
      • getMethodName

        public java.lang.String getMethodName()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the method name in which this violation was identified.
        Specified by:
        getMethodName in interface RuleViolation
        Returns:
        The method name.
      • getVariableName

        public java.lang.String getVariableName()
        Deprecated.
        Description copied from interface: RuleViolation
        Get the variable name on which this violation was identified.
        Specified by:
        getVariableName in interface RuleViolation
        Returns:
        The variable name.