public class Command extends Instruction
| Modifier and Type | Method and Description |
|---|---|
void |
addArg(Argument arg) |
void |
addArg(Expression exp) |
void |
addOperation(Command operation) |
Expression |
getArg(int index) |
Expression |
getArg(String name) |
int |
getArgCount() |
Expression |
getFirstUnamedArg() |
String |
getName() |
List<Command> |
getOperations() |
int |
getUnamedArgCount()
Returns the amount of unamed argument before the first named argument
|
String |
toString() |
getTypepublic Command(String name)
public void addArg(Argument arg)
public void addArg(Expression exp)
public Expression getArg(String name)
public Expression getArg(int index)
public Expression getFirstUnamedArg()
public int getArgCount()
public int getUnamedArgCount()
public String getName()
public void addOperation(Command operation)
Copyright © 2018. All rights reserved.