public interface Scoper
| Modifier and Type | Field and Description |
|---|---|
static Scoper |
UNRESTRICTED
An unrestricted scoper with all elements in scope.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends ProtoElement> |
filter(java.lang.Iterable<E> elems)
Filters the given iterable to the elements reachable with this scoper.
|
boolean |
hasUnreachableDescendants(ProtoElement elem)
Returns true if the given message or enum type has any hidden, non-reachable descendants, e.g.
|
boolean |
isReachable(ProtoElement elem)
Returns true if the element is reachable with this scoper.
|
Scoper |
restrict(Model model,
java.util.Set<java.lang.String> visibilityLabels)
Returns a scoper which restricts a model to the elements reachable with given visibility labels
applied.
|
Scoper |
restrict(com.google.common.base.Predicate<ProtoElement> predicate,
java.lang.String errorContext)
Returns a scoper which refines restrictions on this scoper using the predicate.
|
static final Scoper UNRESTRICTED
boolean isReachable(ProtoElement elem)
<E extends ProtoElement> java.lang.Iterable<E> filter(java.lang.Iterable<E> elems)
boolean hasUnreachableDescendants(ProtoElement elem)
Scoper restrict(Model model, java.util.Set<java.lang.String> visibilityLabels)
Scoper restrict(com.google.common.base.Predicate<ProtoElement> predicate, java.lang.String errorContext)