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 theclassName
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.final int
hashCode()
Returns a hash code value for this object.int
line()
Returns the value of theline
record component.method()
Returns the value of themethod
record component.int
priority()
Returns the value of thepriority
record component.rule()
Returns the value of therule
record component.ruleset()
Returns the value of theruleset
record component.final String
toString()
Returns a string representation of this record class.variable()
Returns the value of thevariable
record 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 aPmdViolation
record class.- Parameters:
file
- the value for thefile
record componentline
- the value for theline
record componentrule
- the value for therule
record componentruleset
- the value for theruleset
record componentpriority
- the value for thepriority
record componentdescription
- the value for thedescription
record componentclassName
- the value for theclassName
record componentmethod
- the value for themethod
record componentvariable
- the value for thevariable
record 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 thefile
record component.- Returns:
- the value of the
file
record component
-
line
Returns the value of theline
record component.- Returns:
- the value of the
line
record component
-
rule
Returns the value of therule
record component.- Returns:
- the value of the
rule
record component
-
ruleset
Returns the value of theruleset
record component.- Returns:
- the value of the
ruleset
record component
-
priority
Returns the value of thepriority
record component.- Returns:
- the value of the
priority
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
className
Returns the value of theclassName
record component.- Returns:
- the value of the
className
record component
-
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
variable
Returns the value of thevariable
record component.- Returns:
- the value of the
variable
record component
-