public class FollowerFunctionImpl<E,T> extends Object implements FollowerFunction<E>
| Modifier and Type | Class and Description |
|---|---|
static class |
FollowerFunctionImpl.Direction |
static class |
FollowerFunctionImpl.UnorderedStrategy |
| Modifier and Type | Field and Description |
|---|---|
protected FollowerFunctionImpl.Direction |
direction |
protected com.google.common.base.Predicate<E> |
filter |
protected Production<E,T> |
production |
protected FollowerFunctionImpl.UnorderedStrategy |
unorderedStrategy |
| Constructor and Description |
|---|
FollowerFunctionImpl(Production<E,T> production) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectByParent(E element,
Set<E> result,
Set<E> visited) |
protected void |
collectByParentSequence(E element,
E container,
Iterable<E> children,
Set<E> result,
Set<E> visited) |
protected void |
collectChildren(E element,
Set<E> result,
Set<E> visited) |
protected void |
collectChildrenAlternative(E element,
Iterable<E> alternativeChildren,
Set<E> result,
Set<E> visited) |
protected void |
collectChildrenSequence(E element,
Iterable<E> sequentialChildren,
Set<E> result,
Set<E> visited) |
protected void |
collectChildrenUnorderedAlt(E element,
Iterable<E> alternativeChildren,
Set<E> result,
Set<E> visited) |
protected void |
collectElement(E ele,
Set<E> result,
Set<E> visited) |
protected boolean |
filter(E ele) |
FollowerFunctionImpl.Direction |
getDirection() |
com.google.common.base.Predicate<E> |
getFilter() |
Iterable<E> |
getFollowers(E element) |
Production<E,?> |
getProduction() |
Iterable<E> |
getStarts(E root) |
FollowerFunctionImpl.UnorderedStrategy |
getUnorderedStrategy() |
protected Iterable<E> |
orderedIterable(Iterable<E> elements) |
protected List<E> |
orderedList(Iterable<E> elements) |
FollowerFunctionImpl<E,T> |
setDirection(FollowerFunctionImpl.Direction direction) |
FollowerFunctionImpl<E,T> |
setFilter(com.google.common.base.Predicate<E> filter) |
FollowerFunctionImpl<E,T> |
setUnorderedStrategy(FollowerFunctionImpl.UnorderedStrategy unorderedStrategy) |
protected List<E> |
toList(Iterable<E> elements) |
protected FollowerFunctionImpl.Direction direction
protected com.google.common.base.Predicate<E> filter
protected Production<E,T> production
protected FollowerFunctionImpl.UnorderedStrategy unorderedStrategy
public FollowerFunctionImpl(Production<E,T> production)
protected void collectByParentSequence(E element, E container, Iterable<E> children, Set<E> result, Set<E> visited)
protected void collectChildrenAlternative(E element, Iterable<E> alternativeChildren, Set<E> result, Set<E> visited)
protected void collectChildrenSequence(E element, Iterable<E> sequentialChildren, Set<E> result, Set<E> visited)
protected void collectChildrenUnorderedAlt(E element, Iterable<E> alternativeChildren, Set<E> result, Set<E> visited)
protected boolean filter(E ele)
public FollowerFunctionImpl.Direction getDirection()
public com.google.common.base.Predicate<E> getFilter()
public Iterable<E> getFollowers(E element)
getFollowers in interface FollowerFunction<E>public Production<E,?> getProduction()
public Iterable<E> getStarts(E root)
getStarts in interface FollowerFunction<E>public FollowerFunctionImpl.UnorderedStrategy getUnorderedStrategy()
public FollowerFunctionImpl<E,T> setDirection(FollowerFunctionImpl.Direction direction)
public FollowerFunctionImpl<E,T> setFilter(com.google.common.base.Predicate<E> filter)
public FollowerFunctionImpl<E,T> setUnorderedStrategy(FollowerFunctionImpl.UnorderedStrategy unorderedStrategy)
Copyright © 2015. All Rights Reserved.