E
- The AST type.public final class CharTransition<E extends Enum<?>> extends Object implements ITransition<E>
Constructor and Description |
---|
CharTransition(char[] single,
char[] min,
char[] max)
Creates a new CharTransition.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public boolean withinSet(char ch)
ch
- The char to test.public IAST<E> acceptVisitor(ITransitionVisitor<E> visitor)
acceptVisitor
in interface ITransition<E extends Enum<?>>
visitor
- The transition visitor.Copyright © 2017 Kevoree Project. All rights reserved.