Package schrodinger :: Package utils :: Module ligfilter :: Class CriterionParser
[hide private]
[frames] | no frames]

Class CriterionParser

A class for parsing a general property or predefined matching criterion.

Instance Methods [hide private]
 
__init__(self, definitions_dict=None)
 
error(self, err)
Print the error and exit.
 
expression_error(self, msg)
Print an error about an invalid expression and exit.
 
parse(self, line, line_num=None)
Create a Criterion object from a string.
Method Details [hide private]

parse(self, line, line_num=None)

 

Create a Criterion object from a string.  The method expects an
input line of the form

    <name>

    ...or...

    <name> <operator> <value>

The first form is valid only for property criteria. 

If the instance has a 'definitions_dict', definition criteria will
be checked against it for validity.

Returns a Criterion.