|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkawa.lang.Pattern
kawa.lang.VarListPat
public class VarListPat
A Pattern that will match a list of a given minimum length.
| Field Summary |
|---|
| Fields inherited from class kawa.lang.Pattern |
|---|
matchPatternMethod, typePattern |
| Constructor Summary | |
|---|---|
VarListPat(int min)
|
|
| Method Summary | |
|---|---|
boolean |
match(java.lang.Object obj,
java.lang.Object[] vars,
int start_vars)
Succeeds of obj is a list with at least min_length elements. |
void |
print(Consumer out)
|
int |
varCount()
|
| Methods inherited from class kawa.lang.Pattern |
|---|
match |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VarListPat(int min)
| Method Detail |
|---|
public boolean match(java.lang.Object obj,
java.lang.Object[] vars,
int start_vars)
match in class Patternobj - the object to match againstvars - the "pattern variable" values extracted from obj go herestart_vars - where in vars to strt putting the varCount() values
public int varCount()
varCount in class Patternpublic void print(Consumer out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||