|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.stevesoft.pat.Validator
This class makes it easy to create your own patterns and integrate them into Regex. For more detail, see the example file deriv2.java or deriv3.java.
| Constructor Summary | |
Validator()
|
|
| Method Summary | |
Validator |
arg(java.lang.String s)
|
patInt |
maxChars()
For optimization it is helpful, but not necessary, that you define the maximum number of characters this validator will allow to match. |
patInt |
minChars()
For optimization it is helpful, but not necessary, that you define the minimum number of characters this validator will allow to match. |
int |
validate(StringLike src,
int start,
int end)
This method does extra checking on a matched section of a String beginning at position start and ending at end. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Validator()
| Method Detail |
public int validate(StringLike src,
int start,
int end)
Regex.define(java.lang.String,java.lang.String,com.stevesoft.pat.Validator)public Validator arg(java.lang.String s)
public patInt minChars()
public patInt maxChars()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||