|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.server.impl.uri.rules.automata.TrieNode<T>
public final class TrieNode<T>
Represents a trie automata node.
| Field Summary | |
|---|---|
static java.util.regex.Pattern |
PARAMETER_PATTERN
TemplateParameters pattern regexp. |
| Constructor Summary | |
|---|---|
protected |
TrieNode()
Creates a new instance of TrieNode |
protected |
TrieNode(T value)
Creates a new instance of TrieNode |
| Method Summary | |
|---|---|
protected void |
add(java.lang.String path,
T value,
UriPattern pattern)
Adds a new node to the tree. |
int |
getArcs()
arcs getter. |
protected TrieArc<T> |
getFirstArc()
firstArch getter. |
UriPattern |
getPattern()
pattern getter. |
java.util.Iterator<T> |
getValue()
value getter. |
protected boolean |
hasValue()
Tells if there is a value in this node. |
protected boolean |
isWildcard()
wildcard getter. |
protected TrieArc<T> |
matchExitArc(java.lang.CharSequence seq,
int i)
Search for a matching escape character in a wildcard sequence. |
void |
pack()
Pack and optimize the automata. |
protected void |
setValue(T value,
UriPattern pattern)
value setter. |
protected void |
setWildcard(boolean b)
wildcard setter. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.regex.Pattern PARAMETER_PATTERN
| Constructor Detail |
|---|
protected TrieNode()
protected TrieNode(T value)
value - Initial value.| Method Detail |
|---|
protected void setWildcard(boolean b)
b - New wildcard value.
protected void setValue(T value,
UriPattern pattern)
value - New value.template - Associated template.
protected TrieArc<T> matchExitArc(java.lang.CharSequence seq,
int i)
c - Test char.protected boolean hasValue()
protected void add(java.lang.String path,
T value,
UriPattern pattern)
path - Matching URIvalue - Value to be added.template - Associated UriPattern.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public UriPattern getPattern()
public java.util.Iterator<T> getValue()
protected boolean isWildcard()
protected TrieArc<T> getFirstArc()
public int getArcs()
public void pack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||