|
||||||||||
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.TrieArc<T>
public class TrieArc<T>
Represents an arc (transition) between trie nodes.
Field Summary | |
---|---|
protected char[] |
code
Character that match this arc. |
protected TrieArc<T> |
next
Next alternative node if this node does not match. |
protected TrieNode<T> |
target
Target node at the end of this arc. |
Constructor Summary | |
---|---|
TrieArc(TrieNode<T> target,
char code)
Creates a new instance of TrieArc. |
Method Summary | |
---|---|
int |
length()
Number of characters to be consumed if this arc matches the input. |
int |
match(java.lang.CharSequence seq,
int i)
Returns length() if this arc matches the input, 0 otherwise. |
void |
pack()
Merge neighbour nodes if they are degenerated trees. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected char[] code
protected TrieNode<T> target
protected TrieArc<T> next
Constructor Detail |
---|
public TrieArc(TrieNode<T> target, char code)
target
- Target node at the end of this arc.code
- Matching character.Method Detail |
---|
public void pack()
public int length()
public int match(java.lang.CharSequence seq, int i)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |