org.jboss.forge.container.addons
Class AddonTree
java.lang.Object
org.jboss.forge.container.addons.AddonTree
- All Implemented Interfaces:
- Iterable<Addon>
public class AddonTree
- extends Object
- implements Iterable<Addon>
- Author:
- Lincoln Baxter, III
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddonTree
public AddonTree(LockManager lock)
add
public void add(Addon addon)
reattach
public void reattach(Addon addon)
prune
public void prune()
- Check to see if any root
AddonDependency
instances are also a dependency of another Addon
. Remove
any such duplicate edges from the root Addon
to preserve the tree traversal order.
depthFirst
public void depthFirst(Visitor<Addon> visitor)
breadthFirst
public void breadthFirst(Visitor<Addon> visitor)
iterator
public Iterator<Addon> iterator()
- Specified by:
iterator
in interface Iterable<Addon>
contains
public boolean contains(Addon addon)
- Return true if this
AddonTree
contians the given Addon
.
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.