@classmethod<EOL><INDENT>def from_clause(cls, clause):<DEDENT>
pieces = []<EOL>for i, part in enumerate(clause):<EOL><INDENT>if i % <NUM_LIT:2> == <NUM_LIT:1>:<EOL><INDENT>pieces.append(part)<EOL><DEDENT>else:<EOL><INDENT>pieces.append(ConstraintExpression.from_clause(part))<EOL><DEDENT><DEDENT>return cls(pieces)<EOL>
Factory method