com.mifmif.common.regex
Class Node
java.lang.Object
com.mifmif.common.regex.Node
public class Node
- extends Object
Node class is used here to present a position in the Automata state . Each
Node has a nbrChar that present the number of possible characters that could
be used to go to the next possible position, and a list of Node that present
the next positions.
- Author:
- y.mifrah
|
Constructor Summary |
Node()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nbrChar
private int nbrChar
nbrMatchedString
private long nbrMatchedString
nextNodes
private List<Node> nextNodes
isNbrMatchedStringUpdated
private boolean isNbrMatchedStringUpdated
minChar
private char minChar
maxChar
private char maxChar
Node
public Node()
updateNbrMatchedString
public void updateNbrMatchedString()
- Calculate the number of string that will be generated until the
transaction presented by this node, and set the result in
nbrMatchedString.
getNextNodes
public List<Node> getNextNodes()
setNextNodes
public void setNextNodes(List<Node> nextNodes)
getNbrChar
public int getNbrChar()
setNbrChar
public void setNbrChar(int nbrChar)
getNbrMatchedString
public long getNbrMatchedString()
setNbrMatchedString
public void setNbrMatchedString(long nbrMatchedString)
getMaxChar
public char getMaxChar()
setMaxChar
public void setMaxChar(char maxChar)
getMinChar
public char getMinChar()
setMinChar
public void setMinChar(char minChar)
Copyright © 2014. All Rights Reserved.