Record Class ArgumentList
java.lang.Object
java.lang.Record
org.aksw.shellgebra.shim.core.ArgumentList
A model that captures structured arguments. This record is used
by tool shims to represent the parsed arguments.
Arguments can be e.g. file paths or sub commands.
Note, that redirects as arguments should be avoided:
Redirects are handled by the shell and not by the command.
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentList(List<CmdArg> args) Creates an instance of aArgumentListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.Get non-redirect arguments.Get redirect arguments.final inthashCode()Returns a hash code value for this object.static ArgumentListstatic ArgumentListstatic ArgumentListofLiterals(List<String> args) intsize()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArgumentList
-
-
Method Details
-
size
public int size() -
of
-
of
-
ofLiterals
-
getRedirects
Get redirect arguments. -
getRealArgs
-
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). -
args
-