|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.dom.DFABuilder
Tools for building a deterministic finite automaton (DFA) recognizer for regular expression-like languages.
Nested Class Summary | |
static interface |
DFABuilder.Node
Node represents a node in an abstract syntax tree. |
Constructor Summary | |
DFABuilder()
|
Method Summary | |
static DFABuilder.Node |
createChoiceNode(DFABuilder.Node child1,
DFABuilder.Node child2)
Create a node that represents a choice between two nodes. |
static DFAState |
createDFA(DFABuilder.Node root)
Create a DFA given the root node of the syntax tree. |
static DFABuilder.Node |
createOptionalNode(DFABuilder.Node child)
Create optional node. |
static DFABuilder.Node |
createRepeatingNode(DFABuilder.Node child,
int minRepeat)
Create a repeating node. |
static DFABuilder.Node |
createSequenceNode(DFABuilder.Node child1,
DFABuilder.Node child2)
Creates a node representing a sequence of two other nodes. |
static DFABuilder.Node |
createSymbolNode(java.lang.Object symbol)
Create a node for a symbol. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DFABuilder()
Method Detail |
public static DFABuilder.Node createChoiceNode(DFABuilder.Node child1, DFABuilder.Node child2)
child1
- first choicechild2
- second choicepublic static DFAState createDFA(DFABuilder.Node root)
root
- Root node of the syntax tree.
public static DFABuilder.Node createOptionalNode(DFABuilder.Node child)
child
- Node that is optional.public static DFABuilder.Node createRepeatingNode(DFABuilder.Node child, int minRepeat)
child
- Node that can be repeated.minRepeat
- minimum number of times the node can be repeated.public static DFABuilder.Node createSequenceNode(DFABuilder.Node child1, DFABuilder.Node child2)
child1
- first node in the sequence.child2
- second node in the sequence.public static DFABuilder.Node createSymbolNode(java.lang.Object symbol)
symbol
- Symbol contained by the node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |