public class VarListPat extends Pattern
matchPatternMethod, typePattern | Constructor and Description |
|---|
VarListPat (int min) |
| Modifier and Type | Method and Description |
|---|---|
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 () |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic VarListPat(int min)
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