Record Class CmdOpExec
java.lang.Object
java.lang.Record
org.aksw.shellgebra.algebra.cmd.op.CmdOpExec
- All Implemented Interfaces:
CmdOp
-
Nested Class Summary
Nested classes/interfaces inherited from interface CmdOp
CmdOp.CmdOpVisitorAddRedirect, CmdOp.CmdOpVisitorModifyRedirect, CmdOp.CmdOpVisitorPrependRedirect -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(CmdOpVisitor<T> visitor) args()Returns the value of theargsrecord component.static CmdOpExecfinal booleanIndicates whether some other object is "equal to" this one.getName()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static CmdOpExecstatic CmdOpExecstatic CmdOpExecofLiteralArgs(String... argv) Args array where the first element is the program name.static CmdOpExecofLiteralArgs(List<String> argv) static CmdOpExecofLiterals(String name, String... args) Create a CmdOpExec with all arguments interpreted as string literals.static CmdOpExecofLiterals(String name, List<String> args) prefixes()Returns the value of theprefixesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CmdOpExec
-
CmdOpExec
-
CmdOpExec
Creates an instance of aCmdOpExecrecord class.- Parameters:
prefixes- the value for theprefixesrecord componentname- the value for thenamerecord componentargs- the value for theargsrecord component
-
-
Method Details
-
of
-
of
-
ofLiteralArgs
-
ofLiteralArgs
-
assign
-
ofLiterals
-
ofLiterals
-
getName
-
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). -
prefixes
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-