use of org.immutables.value.processor.meta.Proto.Environment in project immutables by immutables.
the class ValueType method allKnownValuesInContext.
private Iterable<ValueType> allKnownValuesInContext() {
List<ValueType> values = Lists.newArrayList(nested);
Environment environment = constitution.protoclass().environment();
Optional<TreesIncludeMirror> include = constitution.protoclass().getTreesInclude();
if (include.isPresent()) {
for (Protoclass p : environment.protoclassesFrom(includedElements(include.get()))) {
values.add(environment.composeValue(p));
}
}
return values;
}
Aggregations