public final class Parsers extends Object
| Modifier | Constructor and Description |
|---|---|
private |
Parsers()
Hide constructor for factories sake.
|
| Modifier and Type | Method and Description |
|---|---|
static Parser |
newParser(CommandVerifier v,
LiteralCommandMap m)
Creates parser with
DefaultScanner. |
static Parser |
newParser(LiteralCommandMap m)
Creates a new parser with default scanner implementation and
NullCommandVerifier. |
static Parser |
newParser(Scanner s,
CommandVerifier v,
LiteralCommandMap m)
Creates parser.
|
static Parser |
newParser(Scanner s,
LiteralCommandMap m)
Create new parser with custom scanner and
NullCommandVerifier. |
public static Parser newParser(LiteralCommandMap m)
NullCommandVerifier.m - map key word literals to command typespublic static Parser newParser(Scanner s, LiteralCommandMap m)
NullCommandVerifier.s - used to tokenize inputm - map key word literals to command typespublic static Parser newParser(CommandVerifier v, LiteralCommandMap m)
DefaultScanner.v - verifies parsed commandsm - map key word literals to command typespublic static Parser newParser(Scanner s, CommandVerifier v, LiteralCommandMap m)
s - used to tokenize inputv - verifies parsed commandsm - map key word literals to command typesCopyright © 2014 Sven Strittmatter. All Rights Reserved.