public class Transition extends Object
| Constructor and Description |
|---|
Transition(Node from,
Node to,
RegexSymbol symbol)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
canonical()
Return a canonical representation of the transition.
|
int |
code()
Determine the code for a given transition.
|
boolean |
equals(Object o) |
int[] |
getCodeArray() |
Node |
getFrom() |
RegexSymbol |
getSymbol() |
Node |
getTo() |
int |
hashCode() |
boolean |
isAny() |
boolean |
isEpsilon() |
boolean |
matches(char c)
Does a character match an input symbol?
|
int |
sizeof()
What is the size of this transition in the table.
|
String |
toString() |
public Transition(Node from, Node to, RegexSymbol symbol)
from - the node from which the transition happensto - the destination nodesymbol - the symbol causing the transitionpublic Node getFrom()
public Node getTo()
public RegexSymbol getSymbol()
public boolean isEpsilon()
public boolean isAny()
public String canonical()
public boolean matches(char c)
c - the character to checkpublic int code()
public int sizeof()
public int[] getCodeArray()
Copyright © 2017. All rights reserved.