package openmods.calc.parsing; import com.google.common.collect.ImmutableList; import java.util.List; import openmods.calc.IExecutable; public class SingleExecutableNode<E> implements IExprNode<E> { private final IExecutable<E> value; public SingleExecutableNode(IExecutable<E> value) { this.value = value; } @Override public void flatten(List<IExecutable<E>> output) { output.add(value); } @Override public Iterable<IExprNode<E>> getChildren() { return ImmutableList.of(); } }