public abstract class Pattern
extends java.lang.Object
implements gnu.kawa.format.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 () |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static ClassType typePattern
public static final Method matchPatternMethod
public Pattern()
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()
public void print(Consumer out)
print in interface gnu.kawa.format.Printable