Package kawa.lang
Class AnyPat
- java.lang.Object
-
- kawa.lang.Pattern
-
- kawa.lang.AnyPat
-
- All Implemented Interfaces:
gnu.kawa.format.Printable
,Externalizable
,Serializable
public class AnyPat extends Pattern implements gnu.kawa.format.Printable, Externalizable
A pattern that matches anything.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class kawa.lang.Pattern
matchPatternMethod, typePattern
-
-
Constructor Summary
Constructors Constructor Description AnyPat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnyPat
make()
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)
-
-
-
Method Detail
-
make
public static AnyPat make()
-
print
public void print(Consumer out)
-
match
public boolean match(Object obj, Object[] vars, int start_vars)
Description copied from class:Pattern
Match this Pattern against an Object.
-
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
-
-