|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kawa.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. |
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 Pattern
obj
- 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 Pattern
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |