Record Class WalkResult.Complete<C extends CommandContext<C>>
java.lang.Object
java.lang.Record
site.lab0x13.scrow.commands.parser.WalkResult.Complete<C>
- All Implemented Interfaces:
WalkResult<C>
- Enclosing interface:
WalkResult<C extends CommandContext<C>>
public static record WalkResult.Complete<C extends CommandContext<C>>(C extends CommandContext<C> ctx, Literal<C extends CommandContext<C>> lastLiteral)
extends Record
implements WalkResult<C>
-
Nested Class Summary
Nested classes/interfaces inherited from interface WalkResult
WalkResult.ArgumentExpected<C>, WalkResult.ArgumentIllegal<C>, WalkResult.Complete<C>, WalkResult.LiteralExpected<C>, WalkResult.LiteralUnknown<C> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionctx()Returns the value of thectxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelastLiteralrecord component.@Nullable Stringmessage()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Complete
-
-
Method Details
-
isValidUsage
public boolean isValidUsage()- Specified by:
isValidUsagein interfaceWalkResult<C extends CommandContext<C>>
-
message
- Specified by:
messagein interfaceWalkResult<C extends CommandContext<C>>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
ctx
Returns the value of thectxrecord component.- Specified by:
ctxin interfaceWalkResult<C extends CommandContext<C>>- Returns:
- the value of the
ctxrecord component
-
lastLiteral
Returns the value of thelastLiteralrecord component.- Specified by:
lastLiteralin interfaceWalkResult<C extends CommandContext<C>>- Returns:
- the value of the
lastLiteralrecord component
-