| java.lang.Object kawa.lang.Pattern kawa.lang.VarListPat
VarListPat | public class VarListPat extends Pattern (Code) | | A Pattern that will match a list of a given minimum length.
|
Field Summary | |
int | min_length Minimun length of list that will match. |
Method Summary | |
public boolean | match(Object obj, Object[] vars, int start_vars) Succeeds of obj is a list with at least min_length elements.
Parameters: obj - the object to match against true if the match succeeded.The elements vars[start_vars .. | public void | print(Consumer out) | public int | varCount() |
min_length | int min_length(Code) | | Minimun length of list that will match.
|
VarListPat | public VarListPat(int min)(Code) | | |
match | public boolean match(Object obj, Object[] vars, int start_vars)(Code) | | Succeeds of obj is a list with at least min_length elements.
Parameters: obj - the object to match against true if the match succeeded.The elements vars[start_vars .. start_vars + min_length] containthe first min_length elements of obj followed by themin_length'th cdr of obj. |
varCount | public int varCount()(Code) | | |
|
|