@classmethod<EOL><INDENT>def from_clause(cls, clause):<DEDENT>
field = clause[<NUM_LIT:0>]<EOL>value1 = field_or_value(clause[<NUM_LIT:1>])<EOL>op = None<EOL>value2 = None<EOL>if len(clause) > <NUM_LIT:2>:<EOL><INDENT>op = clause[<NUM_LIT:2>]<EOL>value2 = field_or_value(clause[<NUM_LIT:3>])<EOL><DEDENT>return cls(field, value1, op, value2)<EOL>
Factory method