Package kawa.lang
Class EqualPat
- java.lang.Object
-
- kawa.lang.Pattern
-
- kawa.lang.EqualPat
-
- All Implemented Interfaces:
gnu.kawa.format.Printable
,Externalizable
,Serializable
public class EqualPat extends Pattern implements gnu.kawa.format.Printable, Externalizable
A pattern that requires an exact match (using equal?).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class kawa.lang.Pattern
matchPatternMethod, typePattern
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EqualPat
make(Object obj)
boolean
match(Object obj, Object[] vars, int start_vars)
Match this Pattern against an Object.void
print(Consumer out)
void
readExternal(ObjectInput in)
int
varCount()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
EqualPat
public EqualPat()
-
EqualPat
public EqualPat(Object obj)
-
-
Method Detail
-
match
public boolean match(Object obj, Object[] vars, int start_vars)
Description copied from class:Pattern
Match this Pattern against an Object.
-
print
public void print(Consumer out)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-