Package io.jmix.dynmodelflowui.impl
Record Class DynamicViewHandlerExpressionParser.Position
java.lang.Object
java.lang.Record
io.jmix.dynmodelflowui.impl.DynamicViewHandlerExpressionParser.Position
- Record Components:
kind- what the cursor stands inreceiverPath- the dotted path left of the cursor forDynamicViewHandlerExpressionParser.PositionKind.MEMBER, or the receiver of the enclosing call forDynamicViewHandlerExpressionParser.PositionKind.STRING_ARGUMENT; empty otherwisemethodName- the enclosing call forDynamicViewHandlerExpressionParser.PositionKind.STRING_ARGUMENT, empty otherwiseargumentIndex- the zero-based index of the argument being typed forDynamicViewHandlerExpressionParser.PositionKind.STRING_ARGUMENT,-1otherwise
- Enclosing class:
DynamicViewHandlerExpressionParser
public static record DynamicViewHandlerExpressionParser.Position(DynamicViewHandlerExpressionParser.PositionKind kind, String receiverPath, String methodName, int argumentIndex)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPosition(DynamicViewHandlerExpressionParser.PositionKind kind, String receiverPath, String methodName, int argumentIndex) Creates an instance of aPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theargumentIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of themethodNamerecord component.Returns the value of thereceiverPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Position
public Position(DynamicViewHandlerExpressionParser.PositionKind kind, String receiverPath, String methodName, int argumentIndex) Creates an instance of aPositionrecord class.- Parameters:
kind- the value for thekindrecord componentreceiverPath- the value for thereceiverPathrecord componentmethodName- the value for themethodNamerecord componentargumentIndex- the value for theargumentIndexrecord 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
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. -
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 '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
receiverPath
Returns the value of thereceiverPathrecord component.- Returns:
- the value of the
receiverPathrecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
argumentIndex
public int argumentIndex()Returns the value of theargumentIndexrecord component.- Returns:
- the value of the
argumentIndexrecord component
-