|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lonniepryor.blues.util.TokenizedStrings.Builder
Helper class for sequentially constructing the elements of a common TokenizedStrings specification.
Constructor Summary | |
TokenizedStrings.Builder()
|
Method Summary | |
Strings |
endingWithAnyTokens(char delimeter)
Returns a Strings specification that will allow any number of tokens at the end of canidate strings. |
Strings |
endingWithAtLeastNumTokens(int minTokens,
char delimeter)
Returns a Strings specification that will require at least the supplied number of tokens at the end of canidate strings. |
Strings |
endingWithToken(java.lang.String stringPattern,
char delimeter)
Returns a Strings specification that will require a token satisfying the supplied pattern at the end of canidate strings. |
Strings |
endingWithToken(Strings specification,
char delimeter)
Returns a Strings specification that will require a token satisfying the supplied specification at the end of canidate strings. |
TokenizedStrings.Builder |
followedByAnyTokens()
Returns a Builder whose resulting Strings specification will allow any number of tokens at this point in canidate strings. |
TokenizedStrings.Builder |
followedByAtLeastNumTokens(int minTokens)
Returns a Builder whose resulting Strings specification will require at least the supplied number of tokens at this point in canidate strings. |
TokenizedStrings.Builder |
followedByToken(java.lang.String stringPattern)
Returns a Builder whose resulting Strings specification will require the supplied pattern at this point in canidate strings. |
TokenizedStrings.Builder |
followedByToken(Strings specification)
Returns a Builder whose resulting Strings specification will require the supplied specification at this point in canidate strings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TokenizedStrings.Builder()
Method Detail |
public TokenizedStrings.Builder followedByAnyTokens()
public TokenizedStrings.Builder followedByAtLeastNumTokens(int minTokens)
minTokens
- The minimum number of tokens to require.
public TokenizedStrings.Builder followedByToken(java.lang.String stringPattern)
stringPattern
- The pattern required at this point in canidates.
Strings.parse(String)
public TokenizedStrings.Builder followedByToken(Strings specification)
specification
- The specification required at this point in canidates.
public Strings endingWithAnyTokens(char delimeter)
delimeter
- The token delimeter.
public Strings endingWithAtLeastNumTokens(int minTokens, char delimeter)
minTokens
- The minimum number of tokens to require at the end of
canidates.delimeter
- The token delimeter.
public Strings endingWithToken(java.lang.String stringPattern, char delimeter)
stringPattern
- The pattern required at the end of canidates.delimeter
- The token delimeter.
Strings.parse(String)
public Strings endingWithToken(Strings specification, char delimeter)
specification
- The specification required at the end of canidates.delimeter
- The token delimeter.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |