Record Class CloseCallTarget.Target
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.calls.CloseCallTarget.Target
- Record Components:
ownerTypeName- the type the call namesisTraitCall- true when that type is a trait (an interface call)isVirtualCall- true when the value's static type may hold a subtype that overrides close
- Enclosing class:
CloseCallTarget
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTraitCallrecord component.booleanReturns the value of theisVirtualCallrecord component.Returns the value of theownerTypeNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Target
Creates an instance of aTargetrecord class.- Parameters:
ownerTypeName- the value for theownerTypeNamerecord componentisTraitCall- the value for theisTraitCallrecord componentisVirtualCall- the value for theisVirtualCallrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
ownerTypeName
Returns the value of theownerTypeNamerecord component.- Returns:
- the value of the
ownerTypeNamerecord component
-
isTraitCall
public boolean isTraitCall()Returns the value of theisTraitCallrecord component.- Returns:
- the value of the
isTraitCallrecord component
-
isVirtualCall
public boolean isVirtualCall()Returns the value of theisVirtualCallrecord component.- Returns:
- the value of the
isVirtualCallrecord component
-