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, List<? extends LiteralMeta> alternativeLiterals)
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 TypeMethodDescriptionList<? extends LiteralMeta> Returns the value of thealternativeLiteralsrecord component.ctx()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
Creates an instance of aCompleterecord class.- Parameters:
ctx- the value for thectxrecord componentlastLiteral- the value for thelastLiteralrecord componentalternativeLiterals- the value for thealternativeLiteralsrecord component
-
-
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
-
alternativeLiterals
Returns the value of thealternativeLiteralsrecord component.- Returns:
- the value of the
alternativeLiteralsrecord component
-