Record Class PmdXmlToMarkdownCommand.PmdViolation
java.lang.Object
java.lang.Record
com.streamconverter.command.impl.analysis.PmdXmlToMarkdownCommand.PmdViolation
- Record Components:
file- ファイルパスline- 行番号rule- ルール名ruleset- ルールセットpriority- 優先度description- 説明className- クラス名method- メソッド名variable- 変数名
- Enclosing class:
PmdXmlToMarkdownCommand
public static record PmdXmlToMarkdownCommand.PmdViolation(String file, int line, String rule, String ruleset, int priority, String description, String className, String method, String variable)
extends Record
PMD違反情報を表すレコードクラス
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.method()Returns the value of themethodrecord component.intpriority()Returns the value of thepriorityrecord component.rule()Returns the value of therulerecord component.ruleset()Returns the value of therulesetrecord component.final StringtoString()Returns a string representation of this record class.variable()Returns the value of thevariablerecord component.
-
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 aPmdViolationrecord class.- Parameters:
file- the value for thefilerecord componentline- the value for thelinerecord componentrule- the value for therulerecord componentruleset- the value for therulesetrecord componentpriority- the value for thepriorityrecord componentdescription- the value for thedescriptionrecord componentclassName- the value for theclassNamerecord componentmethod- the value for themethodrecord componentvariable- the value for thevariablerecord component
-
-
Method Details
-
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. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-
ruleset
Returns the value of therulesetrecord component.- Returns:
- the value of the
rulesetrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
variable
Returns the value of thevariablerecord component.- Returns:
- the value of the
variablerecord component
-