public class ProductionUtil
extends java.lang.Object
Constructor and Description |
---|
ProductionUtil() |
Modifier and Type | Method and Description |
---|---|
protected <S,D,T> java.util.List<D> |
clone(Production<S,T> grammarAdapter,
java.lang.Iterable<S> eles,
ProductionFactory<D,T> factory) |
<S,D,T> D |
clone(Production<S,T> production,
ProductionFactory<D,T> factory) |
<S,D,T> D |
clone(Production<S,T> production,
S ele,
ProductionFactory<D,T> factory) |
<E,T> E |
find(Production<E,T> production,
E element,
com.google.common.base.Predicate<E> matches) |
<E,T> E |
find(Production<E,T> production,
com.google.common.base.Predicate<E> matches) |
<E,T> java.util.List<E> |
findAll(Production<E,T> production,
E element,
com.google.common.base.Predicate<E> matches) |
protected <E,T> void |
findAll(Production<E,T> production,
E element,
com.google.common.base.Predicate<E> matches,
java.util.List<E> result) |
<E,T> E |
findByToken(Production<E,T> production,
E element,
com.google.common.base.Predicate<T> matches) |
<E,T> E |
findByToken(Production<E,T> production,
com.google.common.base.Predicate<T> matches) |
<E,T> E |
findByToken(Production<E,T> production,
T matches) |
<E,T> java.util.List<E> |
getAllChildren(Production<E,T> production,
E element) |
protected <E,T> void |
getAllChildren(Production<E,T> production,
E element,
java.util.List<E> result) |
<E,T> java.lang.Iterable<E> |
getChildren(Production<E,T> production,
E element) |
<E,T> E |
getRoot(Production<E,T> prod,
E element) |
protected <S,D,T> java.util.List<D> clone(Production<S,T> grammarAdapter, java.lang.Iterable<S> eles, ProductionFactory<D,T> factory)
public <S,D,T> D clone(Production<S,T> production, ProductionFactory<D,T> factory)
public <S,D,T> D clone(Production<S,T> production, S ele, ProductionFactory<D,T> factory)
public <E,T> E find(Production<E,T> production, E element, com.google.common.base.Predicate<E> matches)
public <E,T> java.util.List<E> findAll(Production<E,T> production, E element, com.google.common.base.Predicate<E> matches)
protected <E,T> void findAll(Production<E,T> production, E element, com.google.common.base.Predicate<E> matches, java.util.List<E> result)
public <E,T> E find(Production<E,T> production, com.google.common.base.Predicate<E> matches)
public <E,T> E findByToken(Production<E,T> production, E element, com.google.common.base.Predicate<T> matches)
public <E,T> E findByToken(Production<E,T> production, com.google.common.base.Predicate<T> matches)
public <E,T> E findByToken(Production<E,T> production, T matches)
protected <E,T> void getAllChildren(Production<E,T> production, E element, java.util.List<E> result)
public <E,T> java.util.List<E> getAllChildren(Production<E,T> production, E element)
public <E,T> E getRoot(Production<E,T> prod, E element)
public <E,T> java.lang.Iterable<E> getChildren(Production<E,T> production, E element)