@classmethod<EOL><INDENT>def from_clause(cls, clause):<DEDENT>
name = clause.getName()<EOL>if name == "<STR_LIT>":<EOL><INDENT>cond = Invert(cls.from_clause(clause[<NUM_LIT:1>]))<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>cond = OperatorConstraint.from_clause(clause)<EOL><DEDENT>elif name == "<STR_LIT>" or clause.conjunction:<EOL><INDENT>cond = Conjunction.from_clause(clause)<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>cond = FunctionConstraint.from_clause(clause)<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>cond = BetweenConstraint.from_clause(clause)<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>cond = InConstraint.from_clause(clause)<EOL><DEDENT>else:<EOL><INDENT>raise SyntaxError("<STR_LIT>" % name)<EOL><DEDENT>return cond<EOL>
Factory method