|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.waxeye.parser.CharTransition<E>
E - The AST type.public final class CharTransition<E extends java.lang.Enum<?>>
A transition cost of matching a char from a set.
| Constructor Summary | |
|---|---|
CharTransition(char[] single,
char[] min,
char[] max)
Creates a new CharTransition. |
|
| Method Summary | |
|---|---|
IAST<E> |
acceptVisitor(ITransitionVisitor<E> visitor)
If this transition cost can be accepted by the parser. |
boolean |
withinSet(char ch)
Whether the char is within the char transition set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharTransition(char[] single,
char[] min,
char[] max)
single - Individual chars in the set.min - The min values for the ranges in the set.max - The max values for the ranges in the set.| Method Detail |
|---|
public boolean withinSet(char ch)
ch - The char to test.
public IAST<E> acceptVisitor(ITransitionVisitor<E> visitor)
acceptVisitor in interface ITransition<E extends java.lang.Enum<?>>visitor - The transition visitor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||