public class Symbol
extends java.lang.Object
FiniteAutomaton. A symbol either represents some possible event from the
input or epsilon which is a special-case symbol that is used for labeling transitions that may be followed
arbitrarily without consuming any input.| Modifier and Type | Field and Description |
|---|---|
static Symbol |
EPSILON
Constant representing the epsilon symbol
|
| Constructor and Description |
|---|
Symbol(java.lang.String event)
Construct a new symbol from some event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getEvent() |
int |
hashCode() |
boolean |
isEpsilon() |
java.lang.String |
toString() |
public static final Symbol EPSILON
public Symbol(java.lang.String event)
event - The event that should be representedjava.lang.IllegalArgumentException - When the event is the empty string.public boolean isEpsilon()
public java.lang.String getEvent()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object