kawa.lang
Class ListRepeatPat
java.lang.Object
kawa.lang.Pattern
kawa.lang.ListRepeatPat
- All Implemented Interfaces:
- Printable, java.io.Externalizable, java.io.Serializable
public class ListRepeatPat
- extends Pattern
- implements Printable, java.io.Externalizable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListRepeatPat
public ListRepeatPat()
ListRepeatPat
public ListRepeatPat(Pattern element_pattern)
make
public static ListRepeatPat make(Pattern element_pattern)
print
public void print(java.io.PrintWriter ps)
- Specified by:
print
in interface Printable
match
public boolean match(java.lang.Object obj,
java.lang.Object[] vars,
int start_vars)
- Description copied from class:
Pattern
- Match this Pattern against an Object.
- Specified by:
match
in class Pattern
- Parameters:
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
- Returns:
- true iff the match succeeded.
varCount
public int varCount()
- Specified by:
varCount
in class Pattern
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException