package gw.rating.flow.domain uses com.google.common.collect.ImmutableList abstract class StatementContainer extends Statement { /** * The list of statements that comprise the body of this container. */ public final var Statements : ImmutableList private final var _codeSize: int override property get CodeSize(): int { return _codeSize } protected construct(statements : ImmutableList) { Statements = statements _codeSize = Statements*.CodeSize.sum() } }