re.ast
Class REEmpty
java.lang.Object
re.ast.RENode
re.ast.REEmpty
public class REEmpty
- extends RENode
A class to represent "\epsilon", an empty regular expression.
|
Method Summary |
|
accept(PropagatingVisitor<DownType,UpType> visitor,
DownType context)
Accepts a propagating visitor parameterized by two types. |
void |
accept(Visitor visitor)
Accepts a visitor object as part of the visitor pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REEmpty
public REEmpty()
accept
public void accept(Visitor visitor)
- Description copied from class:
RENode
- Accepts a visitor object as part of the visitor pattern.
- Specified by:
accept in class RENode
- Parameters:
visitor - A visitor.
accept
public <DownType,UpType> UpType accept(PropagatingVisitor<DownType,UpType> visitor,
DownType context)
- Description copied from class:
RENode
- Accepts a propagating visitor parameterized by two types.
- Specified by:
accept in class RENode
- Type Parameters:
DownType - The type of the object holding the context.UpType - The type of the result object.- Parameters:
visitor - A propagating visitor.context - An object holding context information.
- Returns:
- The result of visiting this node.