Record Class CmdArgWord
java.lang.Object
java.lang.Record
org.aksw.shellgebra.algebra.cmd.arg.CmdArgWord
- All Implemented Interfaces:
CmdArg
public record CmdArgWord(StringEscapeType escapeType, List<Token> tokens)
extends Record
implements CmdArg
A single conventional argument.
It represents a string that may be formed from a (non-empty) list of tokens.
-
Constructor Summary
ConstructorsConstructorDescriptionCmdArgWord(StringEscapeType escapeType, List<Token> tokens) Creates an instance of aCmdArgWordrecord class.CmdArgWord(StringEscapeType escapeType, Token token) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(CmdArgVisitor<T> visitor) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theescapeTyperecord component.final inthashCode()Returns a hash code value for this object.tokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CmdArgWord
Creates an instance of aCmdArgWordrecord class.- Parameters:
escapeType- the value for theescapeTyperecord componenttokens- the value for thetokensrecord component
-
CmdArgWord
-
-
Method Details
-
accept
-
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). -
escapeType
Returns the value of theescapeTyperecord component.- Returns:
- the value of the
escapeTyperecord component
-
tokens
-