Search in sources :

Example 1 with Environment

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;
}
Also used : Protoclass(org.immutables.value.processor.meta.Proto.Protoclass) Environment(org.immutables.value.processor.meta.Proto.Environment)

Aggregations

Environment (org.immutables.value.processor.meta.Proto.Environment)1 Protoclass (org.immutables.value.processor.meta.Proto.Protoclass)1