Class AddressPartNode<T>
- java.lang.Object
-
- org.apache.activemq.artemis.core.postoffice.impl.AddressPartNode<T>
-
public final class AddressPartNode<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringANY_CHILDprotected StringANY_DESCENDENT
-
Constructor Summary
Constructors Constructor Description AddressPartNode(String anyDescendent, String anyChild)AddressPartNode(String path, AddressPartNode<T> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String[] paths, int idx, T value)AddressPartNode<T>getChild(String path)AddressPartNode<T>getChildOrCreate(String path)Collection<AddressPartNode<T>>getChildren()StringgetPath()protected voidpruneIfEmpty()voidremove(String[] paths, int idx, T value)protected voidremoveChild(AddressPartNode<T> node)voidreset()voidvisitDescendantNonWildcardValues(AddressMapVisitor<T> collector)voidvisitMatchingWildcards(String[] paths, int startIndex, AddressMapVisitor<T> collector)voidvisitNonWildcard(String[] paths, int startIndex, AddressMapVisitor<T> collector)voidvisitPathTailMatch(String[] paths, int startIndex, AddressMapVisitor<T> collector)voidvisitPathTailNonWildcard(String[] paths, int startIndex, AddressMapVisitor<T> collector)voidvisitValues(AddressMapVisitor<T> collector)
-
-
-
Constructor Detail
-
AddressPartNode
public AddressPartNode(String path, AddressPartNode<T> parent)
-
-
Method Detail
-
getChild
public AddressPartNode<T> getChild(String path)
-
getChildren
public Collection<AddressPartNode<T>> getChildren()
-
getChildOrCreate
public AddressPartNode<T> getChildOrCreate(String path)
-
visitDescendantNonWildcardValues
public void visitDescendantNonWildcardValues(AddressMapVisitor<T> collector) throws Exception
- Throws:
Exception
-
visitPathTailNonWildcard
public void visitPathTailNonWildcard(String[] paths, int startIndex, AddressMapVisitor<T> collector) throws Exception
- Throws:
Exception
-
visitPathTailMatch
public void visitPathTailMatch(String[] paths, int startIndex, AddressMapVisitor<T> collector) throws Exception
- Throws:
Exception
-
visitNonWildcard
public void visitNonWildcard(String[] paths, int startIndex, AddressMapVisitor<T> collector) throws Exception
- Throws:
Exception
-
visitMatchingWildcards
public void visitMatchingWildcards(String[] paths, int startIndex, AddressMapVisitor<T> collector) throws Exception
- Throws:
Exception
-
visitValues
public void visitValues(AddressMapVisitor<T> collector) throws Exception
- Throws:
Exception
-
getPath
public String getPath()
-
pruneIfEmpty
protected void pruneIfEmpty()
-
removeChild
protected void removeChild(AddressPartNode<T> node)
-
reset
public void reset()
-
-