public abstract class Pattern extends java.lang.Object implements Printable
| Modifier and Type | Field and Description |
|---|---|
static Method |
matchPatternMethod |
static ClassType |
typePattern |
| Constructor and Description |
|---|
Pattern() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
match(java.lang.Object obj)
Match this Pattern against an object.
|
abstract boolean |
match(java.lang.Object obj,
java.lang.Object[] vars,
int start_vars)
Match this Pattern against an Object.
|
void |
print(Consumer out) |
abstract int |
varCount() |
public static ClassType typePattern
public static final Method matchPatternMethod
public java.lang.Object[] match(java.lang.Object obj)
obj - object to match against this patternpublic abstract boolean match(java.lang.Object obj,
java.lang.Object[] vars,
int start_vars)
obj - the Object to match againstvars - the "pattern variable" values extracted from obj go herestart_vars - where in vars to strt putting the varCount() valuespublic abstract int varCount()