Record Class PmdReportConverter.PmdViolation

java.lang.Object
java.lang.Record
com.streamconverter.analysis.PmdReportConverter.PmdViolation
Record Components:
file - ファイルパス
line - 行番号
rule - 違反ルール
ruleset - ルールセット
priority - 優先度
description - 説明
className - クラス名
method - メソッド名
variable - 変数名
Enclosing class:
PmdReportConverter

public static record PmdReportConverter.PmdViolation(String file, int line, String rule, String ruleset, int priority, String description, String className, String method, String variable) extends Record
PMD違反情報を表すレコードクラス
  • Constructor Details

    • PmdViolation

      public PmdViolation(String file, int line, String rule, String ruleset, int priority, String description, String className, String method, String variable)
      Creates an instance of a PmdViolation record class.
      Parameters:
      file - the value for the file record component
      line - the value for the line record component
      rule - the value for the rule record component
      ruleset - the value for the ruleset record component
      priority - the value for the priority record component
      description - the value for the description record component
      className - the value for the className record component
      method - the value for the method record component
      variable - the value for the variable record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • file

      public String file()
      Returns the value of the file record component.
      Returns:
      the value of the file record component
    • line

      public int line()
      Returns the value of the line record component.
      Returns:
      the value of the line record component
    • rule

      public String rule()
      Returns the value of the rule record component.
      Returns:
      the value of the rule record component
    • ruleset

      public String ruleset()
      Returns the value of the ruleset record component.
      Returns:
      the value of the ruleset record component
    • priority

      public int priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • method

      public String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • variable

      public String variable()
      Returns the value of the variable record component.
      Returns:
      the value of the variable record component