public class CommandParser
extends Object
Constructor and Description |
---|
CommandParser(String line) |
Modifier and Type | Method and Description |
---|---|
String |
extractCommand() |
java.util.List<String> |
parseArguments() |
String |
parseSingleArgument() |
String |
parseSingleExtendedArgument() |
int |
parseSingleNumericArgument() |
Integer |
parseSingleOptionalNumericArgument() |
public String parseSingleExtendedArgument() throws CommandSyntaxException
CommandSyntaxException
public String parseSingleArgument() throws CommandSyntaxException
CommandSyntaxException
public java.util.List<String> parseArguments() throws CommandSyntaxException
CommandSyntaxException
public Integer parseSingleOptionalNumericArgument() throws CommandSyntaxException
CommandSyntaxException
public int parseSingleNumericArgument() throws CommandSyntaxException
CommandSyntaxException
public String extractCommand() throws CommandSyntaxException
CommandSyntaxException