Package spoon.reflect.visitor
Record Class ModelConsistencyChecker.InconsistentElements
java.lang.Object
java.lang.Record
spoon.reflect.visitor.ModelConsistencyChecker.InconsistentElements
- Record Components:
element- the element with the invalid parentexpectedParents- the expected parents of the element
- Enclosing class:
- ModelConsistencyChecker
public static record ModelConsistencyChecker.InconsistentElements(CtElement element, List<CtElement> expectedParents)
extends Record
Represents an inconsistent element.
-
Constructor Summary
ConstructorsConstructorDescriptionInconsistentElements(CtElement element, List<CtElement> expectedParents) Creates a new inconsistent element. -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the value of theelementrecord component.booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedParentsrecord component.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
InconsistentElements
Creates a new inconsistent element.- Parameters:
element- the element with the invalid parentexpectedParents- the expected parents of the element
-
-
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
expectedParents
Returns the value of theexpectedParentsrecord component.- Returns:
- the value of the
expectedParentsrecord component
-