}
};
+ private static final Predicate<StmtContext<?, ?, ?>> ARE_FEATURES_SUPPORTED =
+ new Predicate<StmtContext<?, ?, ?>>() {
+
+ @Override
+ public boolean apply(StmtContext<?, ?, ?> input) {
+ return StmtContextUtils.areFeaturesSupported(input);
+ }
+ };
+
private final List<? extends EffectiveStatement<?, ?>> substatements;
private final List<StatementContextBase<?, ?, ?>> unknownSubstatementsToBuild;
this.unknownSubstatementsToBuild = ImmutableList.of();
}
+ substatementsToBuild = Collections2.filter(substatementsToBuild, ARE_FEATURES_SUPPORTED);
+
Function<StmtContext<?, ?, ? extends EffectiveStatement<?, ?>>, EffectiveStatement<?, ?>> buildEffective = StmtContextUtils.buildEffective();
this.substatements = ImmutableList.copyOf(Collections2.transform(substatementsToBuild, buildEffective));
}