|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.ISeriesCLParameterTokenizer
Helper class for tokenizing CL parameter string and return each parameter as a token. It handles extra spaces which are valid for some keywords syntax listed below: (1) Spaces inside brackets (). e.g. "keyword( value )" (2) Keywords with multiple values. e.g. option(*value1 *value2) (3) Text keyword which can contain spaces enclosed by single quote. e.g. "keyword(value) text('my text')" would be treated as two tokens: "keyword(value)" and "text('my text')" while the regular StringTokenizer would return three tokens: "keyword(value)", "text('my" and "text')"
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
ISeriesCLParameterTokenizer(String parameterString,
boolean userData)
Cosntructor |
Method Summary | |
---|---|
boolean |
hasMoreTokens()
Check if there is more token |
String |
nextToken()
Get next token |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public ISeriesCLParameterTokenizer(String parameterString, boolean userData)
parameterString
- - string to be tokenizeduserData
- - from user data. For performance reason, the check of space
before and after bracket is only done for user data entered on the command line.Method Detail |
public boolean hasMoreTokens()
public String nextToken()
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |