|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.shell.core.ParserUtils
public class ParserUtils
Utilities for parsing.
Method Summary | |
---|---|
static Map<String,String> |
tokenize(String remainingBuffer)
Converts a particular buffer into a tokenized structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,String> tokenize(String remainingBuffer)
Properly treats double quotes (") as option delimiters.
Expects option names to be preceded by a single or double dash. We call this an "option marker".
Treats spaces as the default option tokenizer.
Any token without an option marker is considered the default. The default is returned in the Map as an element with an empty string key (""). There can only be a single default.
remainingBuffer
- to tokenize
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |