jpaul.RegExps
Class RegExp.Atomic<A>
java.lang.Object
jpaul.RegExps.RegExp<A>
jpaul.RegExps.RegExp.Atomic<A>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- RegExp<A>
public static class RegExp.Atomic<A>
- extends RegExp<A>
Regular expression that matches only the 1-length string
consisting of exactly one specific symbol.
- See Also:
- Serialized Form
|
Constructor Summary |
RegExp.Atomic(A a)
Creates an Atomic regular expression that
matches only the 1-length string consisting of the symbol
a. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
a
public final A a
RegExp.Atomic
public RegExp.Atomic(A a)
- Creates an
Atomic regular expression that
matches only the 1-length string consisting of the symbol
a.
accept
public <Res> Res accept(RegExp.Visitor<A,Res> visitor)
- Description copied from class:
RegExp
- Method for the visitor pattern. This method will dynamically
select and execute the
visit method of the
visitor that corresponds to the dynamic type of
the regular expression. E.g., in the case of a regular
expression that is a RegExp.Concat object,
accept executes the code of
visit(RegExp.Concat).
- Overrides:
accept in class RegExp<A>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
_hashCode
protected int _hashCode()
- Description copied from class:
RegExp
- Does the real work behing
hashCode.
- Specified by:
_hashCode in class RegExp<A>
- See Also:
RegExp.hashCode()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu